Home > Net >  URL中的中文采用芨 这样的形式,收到的是乱码
URL中的中文采用芨 这样的形式,收到的是乱码

Time:11-01

URL of the Chinese use AB B8 DC D0 % % % % this form, is received by the noise, and then I use % 12, found received \ u0012, what should I do?

CodePudding user response:

String text=System. Web. HttpUtility. UrlEncode (" Chinese ", System. Text. Encoding. UTF8);
String data=https://bbs.csdn.net/topics/System.Web.HttpUtility.UrlDecode (text, System. Text. Encoding. UTF8);
You use what method of coding

CodePudding user response:

Baidu, url encoding and decoding
  • Related