Skip to content

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

Open

Description

@game1991

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

显示还是ANSI的编码

image

Activity

  1. changed the title [-]Windows环境下使用in[/-] [+]Windows环境下使用终端显示中文乱码[/+] on Aug 7, 2024
  2. actboy168 commented on Aug 7, 2024

    @actboy168
    Owner

    在launch.json设置里试下

  3. game1991 commented on Aug 7, 2024

    @game1991
    Author
    	{
    		"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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions