Skip to content

Instantly share code, notes, and snippets.

@jonnybest
Created February 22, 2011 21:12
Show Gist options
  • Save jonnybest/839402 to your computer and use it in GitHub Desktop.
Save jonnybest/839402 to your computer and use it in GitHub Desktop.
Umlaute auf die Console schreiben
#include <iostream>
int main(int argc, char* argv[])
{
std::locale::global(std::locale("German_germany"));
std::cout << "Hallo, schöne Welt!" << std::endl;
}
@mlooz
Copy link

mlooz commented Feb 25, 2011

To set the locale of a stream other than std, use .imbue(locale).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment