Python: Checking System Default Encoding

Last updated on November 21, 2021 The Frog Loading... Post a comment

In Python, you can see your system default encoding by using the standard sys module. Here’s an example:

import sys
sys.getdefaultencoding()

Output:

utf-8

Further reading:

You can also check out our Machine Learning category page or Python category page for more tutorials and examples.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments

You May Also Like