系统自带编辑器无法识别带bom头的文件?
Tofloor
poster avatar
mcxx123
deepin
2019-10-19 22:00
Author
在使用python时。with open('test.txt', 'wb') as f:    f.write('最近好么'.encode("utf-8-sig"))    # 带bom头,写入文件编辑器可以识别, 如果替换utf-8-sig为utf-8,编辑器就无法识别。

请看试下是否此问题复现,如果是请改进编辑器识别无bom头的文本文件。谢谢!

系统:15.11
系统语言:英文
软件:系统编辑器


Reply Favorite View the author
All Replies

No replies yet