Author JGoutin
Recipients JGoutin, paul.moore, steve.dower, tim.golden, zach.ware
Date 2017-01-12.07:07:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
import sys

# Force the use of legacy encoding like versions of Python prior to 3.6.

# 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:47JGoutinsetrecipients: + JGoutin, paul.moore, tim.golden, zach.ware, steve.dower
2017-01-12 07:07:47JGoutinsetmessageid: <>
2017-01-12 07:07:47JGoutinlinkissue29241 messages
2017-01-12 07:07:46JGoutincreate