Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
系统自带编辑器无法识别带bom头的文件?
Experiences and Insight
129
views ·
0
replies ·
To
floor
Go
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
Like 0
Favorite
View the author
All Replies
No replies yet
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
What is the purpose of UOS AI?
chrome browser
Cannot upgrade "Deepin 25.0.10"
Feature Request: Adding an option for a "Floating Dock" mode in DDE
[Feature Request] Drop-down grid panel for window snap layouts
Popular Events
More
请看试下是否此问题复现,如果是请改进编辑器识别无bom头的文本文件。谢谢!
系统:15.11
系统语言:英文
软件:系统编辑器