actboy168 / lua-debug

Lua Debug Adapter for Visual Studio Code
MIT License
440 stars 95 forks source link

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

Open game1991 opened 3 months ago

game1991 commented 3 months ago

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

显示还是ANSI的编码

image

actboy168 commented 3 months ago

在launch.json设置里试下

game1991 commented 3 months ago
    {
        "arg": [],
        "name": "hello.lua",
        "program": "${workspaceFolder}/script/test/hello.lua",
        "request": "launch",
        "stopOnEntry": true,
        "type": "lua",
        "console": "integratedTerminal",
        "sourceCoding": "utf8",
    },

设置了还是没有作用🤦‍♂️