- 550 名前:デフォルトの名無しさん [2008/02/15(金) 18:36:44 ]
- >>503
>>504 >>509 >>525 さらに追加 WingIDEで日本語表示した場合。 >>> 'あいう' '\xe3\x81\x82\xe3\x81\x84\xe3\x81\x86' >>> print 'あいう' 縺ゅ>縺・ >>> u'あいう' u'\xe3\x81\x82\xe3\x81\x84\xe3\x81\x86' >>> print u'あいう' Traceback (most recent call last): File "<string>", line 1, in <string> UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-8: ordinal not in range(128) Gui板はPythonWinもWingIDEも自動ユニコードにならないが、 とりあえず日本語表示できた。 >>543 WingIDEがutf-8で入力、出力はユニコードもシフトJISもいけて その上Windowsと同じでソースコードはシフトJIS、ユニコード両方、UTF-8全部いけちゃうのは知ってた?
|

|