When testing some functions for converting strings between wchar_t and utf8, I met the following weird result with Visual C ++ express 2008
std::wcout << L"élève" << std::endl;
displays "ÚlÞve:", which is clearly not what is expected.
This is obviously a mistake. How can it be? How do I expect to deal with such a "feature"?
The C ++ compiler does not support Unicode in code files. Instead, you should replace these characters with your escaped versions.
Try the following:
std::wcout << L"\x00E9l\x00E8ve" << std::endl;
In addition, your console must also support Unicode.
UPDATE:
, Unicode.
Windows, Unicode? unicode ?
. , ( , MSVC).
, , . ?
UTF-8, Windows : "OEM" ( ) "ANSI" ( ).
++ ANSI 1252 (, , 1254, 1256 1258), OEM- 850.
IDE, ANSI. OEM.
, .
Source: https://habr.com/ru/post/1705967/More articles:Is the design process slow? - designWhat css grid system should i learn? - cssIs there a way to request an element with multiple classes in CSS? - cssRecommendations for working with multiple oral deployments in jBoss - javaJavascript focus () and select () quirk - javascriptBest way to handle exceptions when using HttpWebResponse - c #Использовать отражение для повторения классов - javaHow can I keep checkbox state on a page updated by Ajax? - checkboxAJAX Toolkit AutoCompleteExtender with * PAGE *? - autocompleteJavascript "virus" - javascriptAll Articles