ingemar <inge...@sijohansson.com> added the comment: python.exe -c "import locale; print('ANSI code page: {}'.format(locale.getpreferredencoding()))" ANSI code page: cp1252
python.exe -c "import os; fn=os.fsencode('รค'); print(ascii(fn))" b'\xe4' and no error raised ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10828> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com