Home > Back-end >  Questions about the string
Questions about the string

Time:09-26

In do not define variables for assignment, then how to assign Chinese characters to character variables

CodePudding user response:

The code, and didn't say clear

CodePudding user response:

Would be x;
X=L 'han';

CodePudding user response:

Generally, a character is a char,
But a char can't store a Chinese characters,
So, whether it's definition, direct assignment or assignment after definition, is impossible,
Unless you use unicode
Otherwise, the processing of Chinese characters have to use a string, rather than the character,

CodePudding user response:

That how to assigned to Chinese characters strings

CodePudding user response:

Input of Chinese characters to examples can be reference to look back
  • Related