Skip to content

Unicode character missing when passed via args in launch.json #769

@ixzhao

Description

@ixzhao

Python Debugger: 2025.10.0
Python: 3.12.11
VS Code Version: 1.99.3 (system setup)
OS: Windows_NT x64 10.0.19045

python file

import sys

if __name__ == '__main__':
    a = sys.argv[1]
    print(a)

launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python Debugger: Current File",
            "type": "debugpy",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "args": [
                "真・侍.txt"
            ]
        }
    ]
}

This prints "真侍.txt" and "・" is missing.

Metadata

Metadata

Assignees

Labels

triage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions