V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
bbxiong
V2EX  ›  问与答

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

  •  
  •   bbxiong · 2017-10-24 15:08:12 +08:00 · 5345 次点击
    这是一个创建于 2347 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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"
        }
    }
    

    }

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1386 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 23:40 · PVG 07:40 · LAX 16:40 · JFK 19:40
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.