https://pantsbuild.org/ logo
#development
Title
# development
w

witty-crayon-22786

01/28/2017, 1:34 AM
Copy code
>>> six.text_type(b'中文')
Traceback (most recent call last):
  File "<console>", line 1, in <module>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 0: ordinal not in range(128)
>>> six.text_type
<type 'unicode'>