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

VM Options: 填写-Dfile.encoding=UTF-8 为何导致汉字乱码?

  •  
  •   guyeuro · Aug 17, 2017 · 3234 views
    This topic created in 3179 days ago, the information mentioned may be changed or developed.

    Intellij 下开发 java web 项目

    一直有 VM Options: 填写-Dfile.encoding=UTF-8 的习惯

    但是这次在 windows 7 下开发

    调试窗口汉字乱码

    怎么回事?

    1 replies    2017-08-17 11:39:19 +08:00
    hxsf
        1
    hxsf  
       Aug 17, 2017
    windows cmd 默认 gbk

    先输入下 chcp 65001
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2394 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 04:20 · PVG 12:20 · LAX 21:20 · JFK 00:20
    ♥ Do have faith in what you're doing.