Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VscodeVim always need utf8 output #77

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

elsejj
Copy link
Contributor

@elsejj elsejj commented Jan 3, 2024

因为VscodeVim本质是JS的,它需要从命令行读取的是utf8编码,尽管现在windows的内码已经可以设置成utf8,但做过这个设置的还是极少数,为了更好的兼容性,现在im-select-mspy总是会输出utf8,而不是像之前输出Unicode由windows来转换,这会让VscodeVim使用起来更加正确,尽管会带来的问题是在控制台输出时有可能会是乱码(非utf8内码的windows)

Because VscodeVim is essentially JS, it needs to read utf8 encoding from the command line. Although the Windows code page can now be set to utf8, very few people have made this setting. For better compatibility, im-select-mspy now always outputs utf8, instead of outputting Unicode for Windows to convert. This will make VscodeVim more correct to use, but it will also cause problems when the console output is garbled (for non-utf8 code page Windows).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant