2011-04-23から1日間の記事一覧
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
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