- You create a Visual C++ project in Microsoft Visual Studio 2010.
- A file in the project initializes narrow string literals. These string literals contain Asian characters and are not prefixed with the letter "L."
- The file was saved by using UTF-8 encoding.
In this scenario, when you compile the project, the string literals are misinterpreted by the compiler. Additionally, you encounter one of the following issues:
- When the file contains a byte-order mark (BOM), the compile operation succeeds. However, the string literals are still displayed incorrectly in the generated application. Additionally, you may receive the following warning message when you compile the project:Warning C4566: Character represented by universal-character-name 'xx’ cannot be represented in the current code page.
- The compile operation fails. Additionally, you may receive the following error message when you compile the project:Error C2078: Too many initializers
- The compile operation fails. Additionally, you may receive the following warning message when you compile the project:Warning C4129:'character' : Unrecognized character escape sequence.
More information about this hotfix
Hotfix informationA supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next that contains this hotfix.
To resolve this problem immediately, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft website:Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.
PrerequisitesYou must have Microsoft Visual Studio 2010 installed to apply this hotfix.
Restart informationYou do not have to restart the computer after you apply this hotfix.
File informationThe English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
|File name||File version||File size||Date||Time||Platform|
Article ID: 2284668 - Last Review: Sep 10, 2010 - Revision: 1