<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 文件

        warning c4819 in Visual Studio C++ 2013 express - utf8 files without bom(Visual Studio C++ 2013 express 中的警告 c4819 - 没有 bom 的 utf8 文件)
        <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 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Constructor initialization Vs assignment(构造函数初始化 Vs 赋值)
                  Is a `=default` move constructor equivalent to a member-wise move constructor?(`=default` 移动构造函数是否等同于成员移动构造函数?)
                  Has the new C++11 member initialization feature at declaration made initialization lists obsolete?(声明时新的 C++11 成员初始化功能是否使初始化列表过时了?)
                  Order of constructor call in virtual inheritance(虚继承中构造函数调用的顺序)
                  How to use sfinae for selecting constructors?(如何使用 sfinae 选择构造函数?)
                  Initializing a union with a non-trivial constructor(使用非平凡的构造函数初始化联合)
                    • <bdo id='BAIGk'></bdo><ul id='BAIGk'></ul>
                          <tbody id='BAIGk'></tbody>

                          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'>