2011-04-23から1日間の記事一覧

UnicodeDecodeErrorがでたときに読むべきエントリ

UnicodeDecodeError/UnicodeEncodeErrorに悩まないPython 2.x プログラミング - atsuoishimotoの日記良エントリなので手動reblogした

リダイレクトするとエンコーディングがわからなくなる話

$ cat > t.py import sys print sys.stdout.encoding $ python t.py UTF-8 f$ python t.py > t.txt f$ cat t.txt None