Skip to content

How do you get Windows 11 Shell to work with UTF-8 Hanzi Chinese Characters #301

@hockyy

Description

@hockyy

there is this one shit OS called "Windows 11" which wouldn't let my shell communicate with Chinese characters (Hanzi), I'm at this point to lazy to support my app further for this certain OS 😭

>>> import locale
>>> locale.getencoding()
'cp1252'

Setting the encoding option doesnt help too, adding os.environ["PYTHONUTF8"] = "1" doesn't help too. I give up.

Windows 11
Node v18.15.0
Python3 3.11.3

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions