I\'m having some brain failure in understanding reading and writing text to a file (Python 2.4).
# The string, which has an a-acute in it. ss = u\'Capit\\xe1
Actually, this worked for me for reading a file with UTF-8 encoding in Python 3.2:
import codecs f = codecs.open('file_name.txt', 'r', 'UTF-8') for line in f: print(line)