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.

expected behavior



actual behavior

cyrillic symbols not displayed me. see mojibake instead it.

actual behavior



steps reproduce

the problem reproduced me in version of sublime text without plugins , user settings.

preferenceskey 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

  1. i saw in powershell settings. have 866 (oem - русская) encoding.

866 (oem - русская)

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:\Киролайна> 

powershell 65001
problem remained me.

  1. 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')

cp866 error

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

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -