lua-debug icon indicating copy to clipboard operation
lua-debug copied to clipboard

Windows环境下使用终端显示中文乱码

Open game1991 opened this issue 2 years ago • 2 comments

在windows环境下使用debug功能,使用内置终端,打印中文出现乱码,而且这个编码格式已经设置了utf8,但是没有效果 { "lua.debug.settings.luaVersion": "lua51", "lua.debug.settings.sourceCoding": "utf8", "Lua.runtime.fileEncoding": "utf8", }

显示还是ANSI的编码

image

game1991 avatar Aug 07 '24 04:08 game1991

在launch.json设置里试下

actboy168 avatar Aug 07 '24 05:08 actboy168

	{
		"arg": [],
		"name": "hello.lua",
		"program": "${workspaceFolder}/script/test/hello.lua",
		"request": "launch",
		"stopOnEntry": true,
		"type": "lua",
		"console": "integratedTerminal",
		"sourceCoding": "utf8",
	},
	
设置了还是没有作用🤦‍♂️

game1991 avatar Aug 07 '24 06:08 game1991