|
|
|
|
|
by int_19h
791 days ago
|
|
The simple thing to remember is that for all versions of Python going back 12 years, there's no such thing as "default encoding of string". A Python string is defined as a sequence of 32-bit Unicode codepoints, and that is how Python code perceives it in all respects. How it is stored internally is an implementation detail that does not affect you. |
|
The most expansive Unicode has ever been was 31 bits, and UTF-8 is also capable of at most 31 bits.