encoding - Correct display Cyrillic symbols in SublimeREPL PowerShell -
summary
i can not make correct display cyrillic symbols in sublimerepl powershell.
expected behavior
in windows powershell have not problem.

actual behavior
cyrillic symbols not displayed me. see mojibake instead it.

steps reproduce
the problem reproduced me in version of sublime text without plugins , user settings.
preferences → key bindings → change default (windows).sublime-keymap - user:
[ { "keys": ["super+alt+p"], "command": "repl_open", "args": { "type": "powershell", "encoding": "utf-8", "cmd": ["powershell", "-"], "cwd": "$file_path", "external_id": "powershell" } } ] when test.md in e:\Киролайна folder opened, press super+alt+p → actual behavior.
not helped
- i saw in powershell settings. have
866 (oem - русская)encoding.

i change encoding: run in powershell command chcp 65001:
ps e:\Киролайна> chcp 65001 active code page: 65001 ps e:\Киролайна> chcp active code page: 65001 ps e:\Киролайна> 
problem remained me.
i try change encoding in keymap file:
"encoding": "$win_cmd_encoding""encoding": "cp866""encoding": "cp1251"
when press super+alt+p in open file, error:
unicodedecodeerror: 'utf-8' codec can't decode byte 0x8a in position 9: invalid start byte error: unicodedecodeerror('utf-8', b'c:\users\\x8a\xae\xe2\appdata\roaming', 9, 10, 'invalid start byte')

correct path c:\users\Кот\appdata\roaming, path contain cyrillic symbols Кот.
environment
operating system , version:
russian windows 32-bit 10.0.14393
sublime text:
build 3126
Comments
Post a Comment