Created
January 30, 2012 13:54
-
-
Save mvasilkov/1704504 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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