Home > Back-end >  C how to print Chinese
C how to print Chinese

Time:02-23


How to solve?

CodePudding user response:

Coding issues, it is recommended that look at the character encoding,

CodePudding user response:

The
reference 1/f, confident boy reply:
coding issues, suggest to look at a character encoding,
how character encoding Settings, before I can output directly on the MAC in Chinese

CodePudding user response:

Reference:
 # include & lt; Stdio. H> 
# include & lt; The locale. H>
Int main ()
{
Would the name [100];
The setlocale (LC_ALL, "CHS");
Wscanf (L "% s", name);
Wprintf (L \ "" % s "\ n", name);
return 0;

}
  • Related