Home > database >  PB9 turn utf-8 string
PB9 turn utf-8 string

Time:09-16

PB9 by winstock preached a utf-8 format strings, recommend using the ADODB library online Stream,
OLEObject ole_ADOStream
Ole_ADOStream=CREATE OLEObject
Li_rtn=ole_ADOStream. ConnectToNewObject (" ADODB. Stream ")
Ole_ADOStream. Position=0//Position of 0 to set Charset
Ole_adostream. Type=2//Binary data Binary
Ole_ADOStream. Mode=3//read/write permissions
Ole_ADOStream. Charset="utf-8"
Ole_ADOStream. The Open ()
Ole_ADOStream. WriteText (" your utf_8 ")
Ole_ADOStream. Position=0//Position of 0 to set Charset
Ole_ADOStream. Type=2//text data
Ole_ADOStream. Charset="GB2312"
Ole_ADOStream. Readtext (ls_data)//ls_data is the thing you want
Ole_ADOStream. Close ()
Destroy ole_ADOStream

But PB operation how to prompt can not find ole_ADOStream related attributes (Position, Type, Mode, Charset)
The great spirit show about what problem

CodePudding user response:

Should be your connection is not successful, judge the

Li_rtn=ole_ADOStream. ConnectToNewObject (" ADODB. Stream ")

Li_rtn return values
  • Related