当前位置:网站首页>YYGH-BUG-02
YYGH-BUG-02
2022-06-28 05:57:00 【Xiao Zhao】
Today, I was working on the appointment registration system and logged in via wechat accessToken,openid When getting login information, I found nickname This is a kind of garbled code 
Here we go through , Editor to see what the format of the nickname is
UTF-8 Obviously not 

GBK Obviously not
It seems that it is not easy to launch , It is known that our nickname is addicted to learning !!! So let's take a look at the various coding formats that are addicted to learning


Finally, through comparison, we found that wechat nickname passed Http The encoding format of transmission is windows1252
@Test
public void coding() throws UnsupportedEncodingException {
String s = new String("و²‰è؟·ه\u00AD¦ن¹ !!!".getBytes("windows-1256"),"UTF-8");
log.info(s);
}

complete
// For nickname yes windows1252 Format conversion to utf-8
nickname = new String(nickname.getBytes("windows-1256"),"UTF-8");
log.info("nickname by " + nickname);
Change... In the original code
After the test, it was found that the code was still garbled , Here, let's take a look at the official document to see what kind of coding format it is
The official didn't give the format
边栏推荐
- Official answers to the "network security" competition questions of the 2022 national vocational college skills competition
- Valueerror: iterative over raw text documents expected, string object received
- 数据中台:数据治理的七把利剑
- YYGH-BUG-02
- Error: the following arguments are required:
- Mysql-16-subquery
- The windows environment redis uses AOF persistence and cannot generate an AOF file. After generation, the content of the AOF file cannot be loaded
- Xcode13.3.1 error reported after pod install
- RL 实践(0)—— 及第平台辛丑年冬赛季【Rule-based policy】
- PS effect understanding record 2 color_ dodge color_ burn
猜你喜欢

YYGH-8-预约挂号

5G网络整体架构

Openharmony gnawing paper growth plan -- json-rpc

Apple MDM Bypass 免越狱绕过MDM配置锁 免费

Jenkins continues integration 2

ES9023音频解码芯片的工作原理

6. 毕业设计温湿度监控系统(ESP8266 + DHT11 +OLED 实时上传温湿度数据给公网服务器并在OLED显示屏上显示实时温湿度)

Prime mover × Cloud primordial is making sound, reducing cost and increasing efficiency lecture hall
![[CAD drawing Video] AutoCAD 2014 master's way](/img/19/7013333c028d7db02e356661b9ffc3.jpg)
[CAD drawing Video] AutoCAD 2014 master's way

联想混合云Lenovo xCloud,新企业IT服务门户
随机推荐
Drop down box for implementation
2022年全国职业院校技能大赛“网络安全”竞赛试题官方答案
Use of JDBC
Binder面试之:内存管理单元
Error: the following arguments are required:
Object object to list collection
At first glance, I can see several methods used by motionlayout
容量调度绝对值配置队列使用与避坑
Caused by: com.fasterxml.jackson.databind.exc.InvalidFormatException:异常解决
开发者的时代红利在哪里?
基本类型和包装类的区别
Data warehouse: DWS layer design principle
Data warehouse: financial / banking theme layer division scheme
数据仓库:分层设计详解
bash install. SH ******** error
6. graduation design temperature and humidity monitoring system (esp8266 + DHT11 +oled real-time upload temperature and humidity data to the public network server and display the real-time temperature
Academic search related papers
Yygh-8-appointment registration
Prime mover × Cloud primordial is making sound, reducing cost and increasing efficiency lecture hall
联想混合云Lenovo xCloud,新企业IT服务门户