xoxo419
V2EX  ›  问与答

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

  •  
  •   xoxo419 · Jan 29, 2018 · 1724 views
    This topic created in 3226 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
    mokeyjay
    Jan 29, 2018
    1
    emmmm...先考虑编码问题?是否 UTF8 ?是否带 BOM ?
    wuruxu
    wuruxu
    Jan 29, 2018
    2
    不要使用中文,什么都好了
    7654
    7654
    Jan 29, 2018
    3
    1 楼正解,还有 LF CR/LF 的区别
    ooo3o
    ooo3o
    Jan 29, 2018
    4
    能用英文拼音就不要用中文, Windows 没必要兼容 Linux
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5147 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 02:08 · PVG 10:08 · LAX 18:08 · JFK 21:08
    ♥ Do have faith in what you're doing.