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

2017-10-24 15:08:12 +08:00
 bbxiong

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

}

5360 次点击
所在节点    问与答
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/400251

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX