How do you find out what the "system default encoding" is?
29,305
You should use sys.getdefaultencoding()
Author by
static_rtti
Creator of autojump, the fastest way to move around your filesystem from the command line.
Updated on September 16, 2021Comments
-
static_rtti over 2 years
The documentation for fileobject.encoding mentions that it can be
None
, and in that case, the "system default encoding" is used.How can I find out what this encoding is?