Unicode troubles
Posted
by user343803
on Stack Overflow
See other posts from Stack Overflow
or by user343803
Published on 2010-05-18T08:37:04Z
Indexed on
2010/05/18
8:40 UTC
Read the original article
Hit count: 299
Hello, i have just known Python for few days. Unicode seems to be a problem with Python.
i have a text file stores a text string like this
'\u0110\xe8n \u0111\u1ecf n\xfat giao th\xf4ng Ng\xe3 t\u01b0 L\xe1ng H\u1ea1'
i can read the file and print the string out but it displays incorrectly. How can i print it out to screen correctly as follow:
"Ðèn d? nút giao thông Ngã tu Láng H?"
Thanks in advance
© Stack Overflow or respective owner