0
4

2 回答 2

1

use codecs module.

import codecs
f = codecs.open('file.txt','r','utf8')

this will open your file forcing the utf8 encoding

于 2012-06-11T20:39:51.533 回答
1
于 2012-06-11T23:01:10.527 回答