L
length power
I am in win7 +python3.3.
import os
os.system("chcp 936")
fh=open("test.ch","w",encoding="utf-8")
fh.write("ä½ ")
fh.close()
os.system("chcp 65001")
fh=open("test.ch","r",encoding="utf-8").read()
print(fh)
Äãb'\xe4\xbd\xa0'
How can i display the chinese character `ä½ ` in 65001?
import os
os.system("chcp 936")
fh=open("test.ch","w",encoding="utf-8")
fh.write("ä½ ")
fh.close()
os.system("chcp 65001")
fh=open("test.ch","r",encoding="utf-8").read()
print(fh)
Äãb'\xe4\xbd\xa0'
How can i display the chinese character `ä½ ` in 65001?