Learing Notes
顯示具有
Python
標籤的文章。
顯示所有文章
顯示具有
Python
標籤的文章。
顯示所有文章
2013年11月27日 星期三
Python String Encoding Conversion (UTF-8/ANSI)
**Python String are recorded in UNICODE internally
Reading file encoded in UTF-8:
with open(fileName,'r') as f:
for line in f.readlines():
print line.decode("UTF-8")
較舊的文章
首頁
訂閱:
文章 (Atom)