I\'ve some problem with \"decode\" method in python 3.3.4. This is my code:
for lines in open(\'file\',\'r\'): decodedLine = lines.decode(\'ISO-8859-1\')
This works for me smoothly to read Chinese text in Python 3.6. First, convert str to bytes, and then decode them.
for l in open('chinese2.txt','rb'): decodedLine = l.decode('gb2312') print(decodedLine)