Effects of Setting the Default Encoding : Text Encode « Language Basics « Python
- Python
- Language Basics
- Text Encode
Effects of Setting the Default Encoding
import sys
sys.getdefaultencoding()
s = u'La Pe\xf1a'
print s
Related examples in the same category