V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
ZenFX
V2EX  ›  分享发现

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

  •  
  •   ZenFX · 2018-12-11 10:59:28 +08:00 · 1830 次点击
    这是一个创建于 1934 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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.

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

    先去查查资料写几行代码再来
    canbingzt
        8
    canbingzt  
       2018-12-13 09:31:23 +08:00
    @orangeade excel 先新建空白文档,然后“数据”-“自文本”就可以选择编码了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1509 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 23:54 · PVG 07:54 · LAX 16:54 · JFK 19:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.