How do you find out what the "system default encoding" is?

Question:

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?

Asked By: static_rtti

||

Answers:

You should use sys.getdefaultencoding()

Answered By: Amber