Home > database > PB how to realize the converting UTF16 GBK or GB2312? Directly!!!!!!!!!!!!!!
PB how to realize the converting UTF16 GBK or GB2312? Directly!!!!!!!!!!!!!!
Time:10-02
Recently did a program to read the IC card read text is UTF16 display is garbled, I don't know how to convert normal display? Exclude request! [email protected]
CodePudding user response:
Read by a blob, 9 before FromUnicode (blob) function After 10 String (blob, EncodingUTF16LE! )
CodePudding user response:
I encountered a similar problem When using the pb6.5 There is no way to solve in the pb, there are many online turn gb2312 UTF16 code algorithm, I tried without success Was forced to use Java for interface, use pb invokes the Java services to implement I hope to inspire you