Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <locale>
- /**/int main()
- {
- std::locale loc("fr_FR.utf8");
- std::cout<<"User locale: " << loc.name() << std::endl;
- std::string str("àäâéèêëïîöôüû");
- std::cout<<str <<std::endl;
- for(std::string::iterator it=str.begin();it!=str.end();++it)
- {
- std::cout << toupper(*it, loc);
- }
- std::cout <<std::endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement