Guest User

Untitled

a guest
Jun 20th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <string>
  2. #include <locale>
  3. #include <iostream>
  4. #include <stdio.h>
  5.  
  6. using namespace std;
  7.  
  8. int main( int argc, char** argv )
  9. {
  10. locale utf8(locale("english-us.utf8"),"C",locale::numeric);
  11. locale::global(utf8);
  12. wcout.imbue(utf8);
  13.  
  14. wstring utf8str = L"éàâû";
  15. wcout << "STR: " << utf8str << " " << "\n";
  16.  
  17. return 0;
  18. }
Add Comment
Please, Sign In to add comment