Win10 新预览版记事本默认支持并采用 UTF-8 without BOM

2018-12-11 10:59:28 +08:00
 ZenFX

https://blogs.windows.com/windowsexperience/2018/12/10/announcing-windows-10-insider-preview-build-18298/

Notepad Updates
UTF-8 Encoding: We ’ ve made significant improvements to the way Notepad handles encoding. Starting with this build, we are adding the option to save files in UTF-8 without a Byte Order Mark and making this the default for new files. UTF-8 without a Byte Order Mark is backwards-compatible with ASCII and will provide better interoperability with the web, where UTF-8 has become the default encoding. Additionally, we added a column to the status bar that displays the encoding of the document.

1837 次点击
所在节点    分享发现
8 条回复
congeec
2018-12-11 11:04:38 +08:00
\n 换行呢?
ZenFX
2018-12-11 11:08:52 +08:00
@congeec 这个现在的正式版 1809 就支持了
mjl371
2018-12-11 11:34:25 +08:00
反正 edge 都基于 Chromium 重练了,不如砍了记事本搞个精简版 vsvode 代替算了
nfroot
2018-12-11 11:36:21 +08:00
@mjl371 别,纯文本编辑器还是有存在的意义。。。
orangeade
2018-12-11 11:37:25 +08:00
那 office 系列呢,excel 打开无 bom 的 csv 还是乱码
yksoft1
2018-12-12 08:05:18 +08:00
@congeec 这个要改,除非把整个 msvcrt 都改了。Windows 的\r\n 是写在 C 语言运行库里了,C 语言的\n 默认都会被替换成\r\n
congeec
2018-12-12 08:24:01 +08:00
@yksoft1 你去跟二楼说吧

先去查查资料写几行代码再来
canbingzt
2018-12-13 09:31:23 +08:00
@orangeade excel 先新建空白文档,然后“数据”-“自文本”就可以选择编码了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/516407

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX