VS Code,版权符号©显示为 ,另存为�或 . [英] VS Code, copyright symbol © shown as � and saved as � or �

查看:2341
本文介绍了VS Code,版权符号©显示为 ,另存为�或 .的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的html源代码中,我有一些特殊的符号,例如版权<meta content="© Copyright... />

对于某些文本编辑器,它们可以如上正确显示,但是在VS Code上,我将其显示为.在保存文件后,该符号在其他编辑器中将显示为�和.

如果我将©明确粘贴到VS Code上并保存,然后在另一个文本编辑器上将其另存为©.

我该如何解决?我该怎么办?

解决方案

确保文件的编码设置为可以准确显示符号的内容(例如UTF-8):

这可以在程序的右下角状态栏中找到.

请参阅文件编码支持上的文档.

In my html source code I have some special symbols like the copyright one <meta content="© Copyright... />

For some text editors these are shown correctly as above, but on VS Code I see it as � and after I save the file, the symbol will be shown as � and � on other editors.

If I explicitly paste the © on VS Code and save it, then on another text editor it will be saved as ©.

How can I solve this? What should I do?

解决方案

Ensure your file's encoding is set to something which can accurately display the symbol (like UTF-8):

This can be found in the bottom right of the program in the status bar.

See their documentation on File Encoding Support.

这篇关于VS Code,版权符号©显示为 ,另存为�或 .的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆