#pragma execution_character_set("utf-8") 的替代方法


This compiler directive is obsolete starting in Visual Studio 2015 Update 2.

We recommend that you use the /execution-charset:utf-8 or /utf-8

compiler options together with using the u8 prefix on narrow character and string literals

that contain extended characters. For more information about the u8 prefix,

see String and Character Literals. For more information about the compiler options,

see /execution-charset (Set Execution Character Set) and /utf-8 (Set Source and Executable character sets to UTF-8).

 

https://docs.microsoft.com/en-us/cpp/preprocessor/execution-character-set?view=msvc-160

 

https://docs.microsoft.com/en-us/cpp/build/reference/execution-charset-set-execution-character-set?view=msvc-160


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM