Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
game1991 opened this issue Aug 7, 2024 · 2 comments
Open

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

game1991 opened this issue Aug 7, 2024 · 2 comments

Comments

@game1991
Copy link

game1991 commented Aug 7, 2024

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

显示还是ANSI的编码

image

@game1991 game1991 changed the title Windows环境下使用in Windows环境下使用终端显示中文乱码 Aug 7, 2024
@actboy168
Copy link
Owner

在launch.json设置里试下

@game1991
Copy link
Author

game1991 commented Aug 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants