ボタンの文字が化ける。
Rubyと散々迷いPythonに決める。しかもIronPython。早速DLしてきてインストール。.NETのフォームとか簡単じゃんとか思ってボタンを配置したら、ボタンのテキストが文字化けする。
#! /F:\XXX\IronPython\IronPython-1.0.1\ipy.exe import clr clr.AddReference("System.Windows.Forms") from System.Windows.Forms import * clr.AddReference("System.Drawing") from System.Drawing import * button = Button( Text='OK' ) button.Location = Point( 200 , 200 ) button.DialogResult = DialogResult.OK form = Form( Text="Hello world" ) form.Controls.Add( button ) form.ShowDialog()
うーん、ファイルの文字コードかと思いきやそうでもないみたい。ダイアログタイトルは問題ないんだけどなぁ… わかんねぇや。
追記
今日試したら文字化けば起こらなかった…なんでだろう…