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

VSCODE 运行 lua 输出乱码,老司机教下如何设置

  •  
  •   bbxiong · Oct 24, 2017 · 5994 views
    This topic created in 3114 days ago, the information mentioned may be changed or developed.

    VSCODE 运行 lua,打印中文乱码,请问如何设置输出编码?

    lua 文件 gbk 编码,打印也是 gbk 编码,已经设置, "files.encoding": "gbk",

    { "version": "0.1.0",

    // The command is tsc. Assumes that tsc has been installed using npm install -g typescript
    "command": "lua",
    
    // The command is a shell script
    "isShellCommand": true,
    
    // Show the output window only if unrecognized errors occur.
    "showOutput": "silent",
    
    // args is the HelloWorld program to compile.
    "args": ["${file}"],
    
    
    
    // use the standard tsc problem matcher to find compile problems
    // in the output.
    // "problemMatcher": {}
    "options": {
        "env": {
    		"LUAENCODING":"GBK"
        }
    }
    

    }

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2714 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 13:14 · PVG 21:14 · LAX 06:14 · JFK 09:14
    ♥ Do have faith in what you're doing.