<i id='tDb1r'><tr id='tDb1r'><dt id='tDb1r'><q id='tDb1r'><span id='tDb1r'><b id='tDb1r'><form id='tDb1r'><ins id='tDb1r'></ins><ul id='tDb1r'></ul><sub id='tDb1r'></sub></form><legend id='tDb1r'></legend><bdo id='tDb1r'><pre id='tDb1r'><center id='tDb1r'></center></pre></bdo></b><th id='tDb1r'></th></span></q></dt></tr></i><div id='tDb1r'><tfoot id='tDb1r'></tfoot><dl id='tDb1r'><fieldset id='tDb1r'></fieldset></dl></div>
    <tfoot id='tDb1r'></tfoot>
  • <legend id='tDb1r'><style id='tDb1r'><dir id='tDb1r'><q id='tDb1r'></q></dir></style></legend>
      • <bdo id='tDb1r'></bdo><ul id='tDb1r'></ul>

    1. <small id='tDb1r'></small><noframes id='tDb1r'>

      1. Visual Studio C++ 2013 express 中的警告 c4819 - 没有 bom 的 utf8 文件

        时间:2023-09-26
        <legend id='1nJHs'><style id='1nJHs'><dir id='1nJHs'><q id='1nJHs'></q></dir></style></legend>
            <bdo id='1nJHs'></bdo><ul id='1nJHs'></ul>
            • <i id='1nJHs'><tr id='1nJHs'><dt id='1nJHs'><q id='1nJHs'><span id='1nJHs'><b id='1nJHs'><form id='1nJHs'><ins id='1nJHs'></ins><ul id='1nJHs'></ul><sub id='1nJHs'></sub></form><legend id='1nJHs'></legend><bdo id='1nJHs'><pre id='1nJHs'><center id='1nJHs'></center></pre></bdo></b><th id='1nJHs'></th></span></q></dt></tr></i><div id='1nJHs'><tfoot id='1nJHs'></tfoot><dl id='1nJHs'><fieldset id='1nJHs'></fieldset></dl></div>

              <small id='1nJHs'></small><noframes id='1nJHs'>

                <tbody id='1nJHs'></tbody>

            • <tfoot id='1nJHs'></tfoot>
                  本文介绍了Visual Studio C++ 2013 express 中的警告 c4819 - 没有 bom 的 utf8 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在 Visual Studio C++ 2013 express 中,除非 utf8 编码的文件具有 BOM 标记,否则编译器无法理解正在编译的文件是 UTF8 编码并将其视为本机编码.但是代码编辑器没有这个问题.

                  In visual studio C++ 2013 express it seems that unless utf8-encoded file has BOM mark, compiler fails to understand that the file being compiled is in UTF8 encoding and treats it as being in native encoding. Code editor, however, does not have this problem.

                  warning C4819: The file contains a character that cannot be represented in the current code page (932). Save the file in Unicode format to prevent data loss
                  

                  是否有针对此行为的修复方法?我记得这是所有 Visual Studio 版本中的常见问题,但我不记得曾经看到过修复.我无法准确地为每个不属于我的文件添加 bom 标记,尤其是在代码存储库中维护源代码的情况下.

                  Is there a fix for this behavior? I remember this being common problem in all visual studio versions, but I don't remember ever seeing a fix. I can't exactly keep adding bom marks to every file that is not mine, especially if source is maintained in code repository.

                  推荐答案

                  到目前为止我还没有遇到任何问题的解决方案.

                  To the date I have not encountered any solution to the problem.

                  如果存在针对此行为的修复程序,则显然这是保密的.

                  If a fix for this behavior exists, apparently it is well guarded secret.

                  这篇关于Visual Studio C++ 2013 express 中的警告 c4819 - 没有 bom 的 utf8 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:OpenCV 不适用于 Visual Studio 下一篇:Shift-JIS 解码在 Visual C++ 2013 中使用 wifstrem 失败

                  相关文章

                  • <bdo id='BAIGk'></bdo><ul id='BAIGk'></ul>

                    1. <legend id='BAIGk'><style id='BAIGk'><dir id='BAIGk'><q id='BAIGk'></q></dir></style></legend>

                      <i id='BAIGk'><tr id='BAIGk'><dt id='BAIGk'><q id='BAIGk'><span id='BAIGk'><b id='BAIGk'><form id='BAIGk'><ins id='BAIGk'></ins><ul id='BAIGk'></ul><sub id='BAIGk'></sub></form><legend id='BAIGk'></legend><bdo id='BAIGk'><pre id='BAIGk'><center id='BAIGk'></center></pre></bdo></b><th id='BAIGk'></th></span></q></dt></tr></i><div id='BAIGk'><tfoot id='BAIGk'></tfoot><dl id='BAIGk'><fieldset id='BAIGk'></fieldset></dl></div>
                      <tfoot id='BAIGk'></tfoot>

                      <small id='BAIGk'></small><noframes id='BAIGk'>