Kind of a trivial thing, but ... I want to print Japanese characters using plain C from Hexadecimals
From this table , I know that the first char in the table is あ Entity is & # 12353 and its Hex Entity x3041, etc.
But how can I use these two numbers to print all the characters on the command line?
If your terminal is configured for UTF-8 and the locale is set correctly, you can write:
char s[]="あ";
you can also try
char s[]={0xe3,0x81,0x82,0x0}
(the last is Unicode UTF-8 encoding for "あ"), and then just printf("%s",s);
printf("%s",s);
__STDC_ISO_10646__ , wchar_t , - :
__STDC_ISO_10646__
wchar_t
printf("%lc", (wchar_t)0x3041);
Source: https://habr.com/ru/post/1781631/More articles:As3 swf bytecode injection - flashAI and software testing - artificial-intelligencehow to get sql dump from sqlite database using blob? - sqlitePerhaps overloading Console.ReadLine? (or any method of a static class) - c #C # WebClient OpenRead url - c #Using Webclient to upload multiple files - c #Pair Matching Algorithm - algorithmVisual representation of sets - setForce activity to a story stack - androidAnnotate EnumMap с использованием аннотаций Hibernate - javaAll Articles