Python: Checking System Default Encoding
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:
- List, Dict, and Set Comprehensions in Python 3
- Python: Categorizing Given Words by Their First Letters
- Python 3: Simultaneously Iterating over Multiple Sequences
- How to Check Whether an Object is Iterable in Python 3
- Examples of using Lambda Functions in Python 3
You can also check out our Machine Learning category page or Python category page for more tutorials and examples.
Subscribe
0 Comments