エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント2件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
IronPython と CPython のエンコーディング宣言とかの挙動: ある nakagami の日記
test1.py # -*- coding: euc-jp -*- s = 'あいうえお' print s test2.py # -*- coding: euc-jp -*- s = ... test1.py # -*- coding: euc-jp -*- s = 'あいうえお' print s test2.py # -*- coding: euc-jp -*- s = 'あいうえお' print unicode(s, 'euc-jp').encode('Shift_JIS') test3.py # -*- coding: euc-jp -*- us = u'あいうえお' print us print us.encode('Shift_JIS') test4.py # -*- coding: euc-jp -*- s = 'あいうえお' print s print unicode(s, 'euc-jp').encode('Shift_JIS') IronPython の結果 C:\>ironpythonconsole test1.py あいうえお C:\>ironpython
2006/04/13 リンク