fork(7) download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. int main()
  5. {
  6. std::string d1 = "сайн";
  7. std::string d2 = "\xd1\x81\xd0\xb0\xd0\xb9\xd0\xbd";
  8. if(d1 == d2)
  9. std::cout << "Your development environment uses UTF-8\n";
  10. else
  11. std::cout << "Your development environment uses something else\n";
  12. }
  13.  
Success #stdin #stdout 0s 3028KB
stdin
Standard input is empty
stdout
Your development environment uses UTF-8