Top "Python-unicode" questions

Python distinguishes between byte strings and unicode strings.

UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 20: ordinal not in range(128)

I'm having problems dealing with unicode characters from text fetched from different web pages (on different sites). I am using …

python unicode beautifulsoup python-2.x python-unicode
UnicodeDecodeError: 'utf8' codec can't decode byte 0x9c

I have a socket server that is supposed to receive UTF-8 valid characters from clients. The problem is some clients (…

python linux python-unicode
SyntaxError: Non-ASCII character '\xa3' in file when function returns '£'

Say I have a function: def NewFunction(): return '£' I want to print some stuff with a pound sign …

python unicode python-unicode
Python - 'ascii' codec can't decode byte

I'm really confused. I tried to encode but the error said can't decode.... >>> "你好".encode("utf8") Traceback (most …

python python-2.7 unicode python-2.x python-unicode
How to print Unicode character in Python?

I want to make a dictionary where English words point to Russian and French translations. How do I print out …

python python-unicode
Python string to unicode

Possible Duplicate: How do I treat an ASCII string as unicode and unescape the escaped characters in it in python? …

python string unicode python-2.x python-unicode
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 7: ordinal not in range(128)

I have this code: printinfo = title + "\t" + old_vendor_id + "\t" + apple_id + '\n' # Write file f.write (printinfo + …

python xml unicode encoding python-unicode
UnicodeDecodeError: ('utf-8' codec) while reading a csv file

what i am trying is reading a csv to make a dataframe---making changes in a column---again updating/reflecting changed value …

python pandas utf-8 python-unicode
Python string argument without an encoding

Am trying to a run this piece of code, and it keeps giving an error saying "String argument without an …

python python-3.x encoding python-unicode
Correctly reading text from Windows-1252(cp1252) file in python

so okay, as the title suggests the problem I have is with correctly reading input from a windows-1252 encoded file …

python utf-8 python-unicode windows-1252 cp1252