VS Code 无法读取用其他编辑器编写的 unicode 语言

VS Code can't read unicode language written in other editors

我正在尝试使用 VS Code,但我在打开使用其他编辑器编写的代码时遇到问题,VS Code 无法读取韩语 unicode? utf-8?我们在代码中称其他语言是什么?

我用 vim 编辑器编写代码,并用韩语写了一些注释,任何其他编辑器都可以阅读韩语,但 VS Code 如下所示。

ret.insert(ret.end(), bottom.begin(), bottom.end()); // written in vim
// 는 다음과 같음


ret.insert(ret.end(), bottom.begin(), bottom.end()); // opened in VS Code
// �� ������ ����

我该如何解决这个问题?

确保您的 VSCode 正在使用 UTF8 编码打开文件。