【发布时间】:2012-11-07 18:01:10
【问题描述】:
当我打开 Visual Studio 2012 时,我收到消息“Visual Studio The encoding in the declaration 'utf-16' does not match the encoding of the document 'utf-8'”。
有谁知道为什么会发生这种情况?或者我应该做什么故障排除?
【问题讨论】:
-
如果您选择否决问题,请随时发表评论。
-
您检查过相关文件吗?听起来您的文件具有 UTF-16 BOM 但 UTF-8 数据。
-
@EdwardThomson 这是问题的一部分。当我第一次打开 Visual Studio 时会出现此问题,但它没有在消息框中指定特定文件。
标签: visual-studio-2012 utf-8 utf-16 file-encodings