xoxo419
V2EX  ›  问与答

windows 上的文件在 Linux 出现乱码?

  •  
  •   xoxo419 · Jan 29, 2018 · 1644 views
    This topic created in 3120 days ago, the information mentioned may be changed or developed.

    环境: windows7 + virtualBox + docker

    文件在 windows 下编辑的, 最后运行是在 docker 中的 linux. 而 windows 与 vbox 中的 linux 有设置共享文件夹然后再加载到 docker 中的 linux 中.

    4 replies    2018-01-29 17:29:29 +08:00
    mokeyjay
        1
    mokeyjay  
       Jan 29, 2018
    emmmm...先考虑编码问题?是否 UTF8 ?是否带 BOM ?
    wuruxu
        2
    wuruxu  
       Jan 29, 2018
    不要使用中文,什么都好了
    7654
        3
    7654  
       Jan 29, 2018
    1 楼正解,还有 LF CR/LF 的区别
    ooo3o
        4
    ooo3o  
       Jan 29, 2018
    能用英文拼音就不要用中文, Windows 没必要兼容 Linux
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   869 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 20:56 · PVG 04:56 · LAX 13:56 · JFK 16:56
    ♥ Do have faith in what you're doing.