虫言虫语 虫言虫语

通过python解决文件中unicode转中文

in Pythonread (354497) 文章转载请注明来源!
fneed = open('2222.txt',encoding="unicode_escape").read()

fjson = open("b.txt", "w",encoding="utf-8")
fjson.write(fneed)
fjson.close()
jrotty WeChat Pay

微信打赏

jrotty Alipay

支付宝打赏

文章二维码

扫描二维码,在手机上阅读!

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4096 bytes) in /data/htdocs/worm.host.smartgslb.com/build/var/Typecho/Db/Adapter/Pdo.php on line 119