Message285290
import sys
# Force the use of legacy encoding like versions of Python prior to 3.6.
sys._enablelegacywindowsfsencoding()
# Show actual file system encoding
encoding = sys.getfilesystemencoding()
print('File system encoding:', encoding)
# os.fsencode(filename) VS filename.encode(File system encoding)
import os
print(os.fsencode('é'), 'é'.encode(encoding))
>>> File system encoding: mbcs
>>> b'\xc3\xa9' b'\xe9'
The result is the same. |
|
Date |
User |
Action |
Args |
2017-01-12 07:07:47 | JGoutin | set | recipients:
+ JGoutin, paul.moore, tim.golden, zach.ware, steve.dower |
2017-01-12 07:07:47 | JGoutin | set | messageid: <1484204867.11.0.47967616488.issue29241@psf.upfronthosting.co.za> |
2017-01-12 07:07:47 | JGoutin | link | issue29241 messages |
2017-01-12 07:07:46 | JGoutin | create | |
|