Skip to content

Instantly share code, notes, and snippets.

@mvasilkov
Created January 30, 2012 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mvasilkov/1704504 to your computer and use it in GitHub Desktop.
Save mvasilkov/1704504 to your computer and use it in GitHub Desktop.
#include <locale.h>
#include <stdio.h>
#include <wchar.h>
int main() {
wchar_t name[10];
wcscpy(name, L"жажа");
setlocale(LC_CTYPE, "en_US.UTF-8");
wprintf(L"%S\n", name);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment