Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string>
- #include <locale>
- #include <iostream>
- #include <stdio.h>
- using namespace std;
- int main( int argc, char** argv )
- {
- locale utf8(locale("english-us.utf8"),"C",locale::numeric);
- locale::global(utf8);
- wcout.imbue(utf8);
- wstring utf8str = L"éàâû";
- wcout << "STR: " << utf8str << " " << "\n";
- return 0;
- }
Add Comment
Please, Sign In to add comment