Python read ISO 8859-1 (Latin1) encoding

import codecs
f = codecs.open(path, 'r', 'iso-8859-1')
str = f.read()
f.close()

Advertisements