Home > database >  How to convert into Chinese display unicode code
How to convert into Chinese display unicode code

Time:09-22

Call the webservice, returns the unicode, like this: \ u8f6f \ u4ef6 \ u4fe1 \ how can consult ace u606f into Chinese show

CodePudding user response:

Software information
Every two (such as: 8 f) converted to decimal ASCII
Then use char function converts characters

CodePudding user response:

Every two (such as: 8 f) converted to decimal ASCII

Add up the results, and then use char conversion?

CodePudding user response:

Asc (" f "8)=56
Asc (" f "6)=54
Char (5654)
This is a topsy-turvy

CodePudding user response:

Not with asc conversion, it is necessary to convert hexadecimal to decimal data, and then turn unicode need multiple bytes,

CodePudding user response:

8 f6f converted to decimal is 44943, then char (44943)? Still garbled?

CodePudding user response:

Hexadecimal conversion into decimal

Example:
8 f - & gt; 143
6 f - & gt; 111

Byte lb []
Lb [1]=143
Lb [2]=111
Messagebox (' ', a string, blob (lb []), encodingutf16be!)//soft

Return

CodePudding user response:

Pb version 9.0 after toansi, tounicode fromansi, fromunicode can be used to convert
  • Related