V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
ZenFX

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

  •  
  •   ZenFX · Dec 11, 2018 · 2290 views
    This topic created in 2696 days ago, the information mentioned may be changed or developed.

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

    先去查查资料写几行代码再来
    canbingzt
        8
    canbingzt  
       Dec 13, 2018
    @orangeade excel 先新建空白文档,然后“数据”-“自文本”就可以选择编码了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2747 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 54ms · UTC 15:39 · PVG 23:39 · LAX 08:39 · JFK 11:39
    ♥ Do have faith in what you're doing.