Home > database >  In PB how to convert "12345" to HTML Unicode: & # 19968; The & # 20108; The & # 19977; The
In PB how to convert "12345" to HTML Unicode: & # 19968; The & # 20108; The & # 19977; The

Time:09-28

In PB how to convert "12345" to HTML Unicode: & amp; # 19968; & # 20108; & # 19977; & # 22235; & # 20116;

CodePudding user response:

1, a single Chinese character in the char array [2],
2, with asc took out two numerical value of (char), high value and low value, respectively,
3, high (i.e., char array in the 2) multiplied by the 256 s and 255 "and" operation, the results are combined with low (i.e., char array of 1) the value of the
This result is that eventually you have to value,

CodePudding user response:

The method of simple point:

Define the API function following
The Function ulong MemoryCopy (REF ulong destination, REF char source [], ulong length) library "kernel32. DLL" Alias for "RtlMoveMemory
"
Script
 
Ulong lul_return
Char lch_temp []
Lch_temp='a'

MemoryCopy (lul_return lch_temp, 2)

Messagebox (' a ', a string (lul_return))


CodePudding user response:

Excuse me, how to do "and" operation in PB?

CodePudding user response:

reference charlyai reply: 3/f
could you tell me how to do "and" operation in PB?


Check in the PFC pfc_n_cst_numerical object

PB can not directly use function, oneself write a line, but efficiency is not high,

CodePudding user response:

mark

CodePudding user response:

No translation I reckon you are read HTML UNICODE value or use PB to HTML to write Chinese characters!
Spatial resolution can be directly HTML itself.
For example:
String ls_readhtmlunicode
OleObject Htmlparser
Htmlparser=HtmlDocument. GetElementsByTagName (" input ")
Ls_readhtmlunicode=Htmlparser. Item (0). The innerHtml

CodePudding user response:

Due to some factors must be based on some of the words to replace the Html file, but the Html file content encoded into Html UNICODE, so cannot compare,
Now want to replace characters are converted to HTML UNICOD facilitate the find/replace
Nebula1982 methods provided by you I'll have a try, thank you!!!!!

CodePudding user response:

Excuse me how, in turn, HTML Unicode into Chinese characters
  • Related