Home > database >  How to put the string into a utf-8?
How to put the string into a utf-8?

Time:09-25

Such as a string STR="user tom123, how are you", how to convert to utf-8 and then use a string representation?

CodePudding user response:

Byte [] by=Encoding. The Default. GetBytes (" string ");
String aa=Encoding. GetEncoding (" utf-8 "). Get string (by);

CodePudding user response:

Pb10.5 operation error, version is not enough

CodePudding user response:

His top

CodePudding user response:

Use PB can realize?

CodePudding user response:

Byte [] by=Encoding. The Default. GetBytes (" string ");
String aa=Encoding. GetEncoding (" utf-8 "). Get string (by); Haven't dealt with

CodePudding user response:

Poor host

Parameters: as_text='summer'

Blob lb_stext
String ls_text2
Lb_stext=blob (as_text encodingutf16Be!)
Ls_text2=string (lb_stext encodingutf8!)

Results: ls_text2 Y=Y)

CodePudding user response:

The results should be the combination of percent and letters?

CodePudding user response:

Pb GB2312 and Unicode string, mutual transformation between the UTF8
http://blog.csdn.net/yyoinge/article/details/6701845

CodePudding user response:

The building Lord you said the url encoding, can also, see my http://download.csdn.net/source/3429501
  • Related