当前位置:网站首页>Unified ordering background interface product description Chinese garbled
Unified ordering background interface product description Chinese garbled
2022-07-06 08:27:00 【Cabbage s】
When wechat pays, the product description is garbled as shown in the figure below
resolvent
//1 assemble body No conversion coding is required for parameters
//2 MD5 Encryption requires UTF-8
public static String MD5Encode(String origin, String charsetname) {
charsetname="utf-8";
String resultString = null;
try {
resultString = new String(origin);
MessageDigest md = MessageDigest.getInstance("MD5");
resultString = byteArrayToHexString(md.digest(origin
.getBytes(charsetname)));
} catch (Exception exception) {
}
return resultString.toUpperCase();
}
//3 No conversion coding is required when requesting wechat
- When the project starts add to Encoding settings -Dfile.encoding=UTF-8
Such as The startup command is java -jar xx.jar Change it to
java -Dfile.encoding=UTF-8 -jar xx.jar
边栏推荐
- Use Alibaba icon in uniapp
- Step by step guide to setting NFT as an ens profile Avatar
- Asia Pacific Financial Media | designer universe | Guangdong responds to the opinions of the national development and Reform Commission. Primary school students incarnate as small community designers
- NFT smart contract release, blind box, public offering technology practice -- contract
- Fibonacci sequence
- China vanadium battery Market Research and future prospects report (2022 Edition)
- Pointer advanced --- pointer array, array pointer
- Summary of phased use of sonic one-stop open source distributed cluster cloud real machine test platform
- 从表中名称映射关系修改视频名称
- LDAP應用篇(4)Jenkins接入
猜你喜欢
2022.02.13 - NC002. sort
[cloud native] teach you how to build ferry open source work order system
Verrouillage [MySQL]
All the ArrayList knowledge you want to know is here
On the day of resignation, jd.com deleted the database and ran away, and the programmer was sentenced
Configuring OSPF load sharing for Huawei devices
Asia Pacific Financial Media | female pattern ladyvision: forced the hotel to upgrade security. The drunk woman died in the guest room, and the hotel was sentenced not to pay compensation | APEC secur
C语言自定义类型:结构体
From monomer structure to microservice architecture, introduction to microservices
Golang DNS write casually
随机推荐
[cloud native topic -45]:kubesphere cloud Governance - Introduction and overall architecture of enterprise container platform based on kubernetes
【MySQL】日志
使用 BR 恢复 S3 兼容存储上的备份数据
[brush questions] top101 must be brushed in the interview of niuke.com
堆排序详解
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
2022.02.13 - NC001. Reverse linked list
Leetcode skimming (5.29) hash table
Résumé des diagrammes de description des broches de la série ESP
IoT -- 解读物联网四层架构
Fibonacci sequence
[research materials] 2022 China yuancosmos white paper - Download attached
Use br to back up tidb cluster data to S3 compatible storage
Day29-t77 & t1726-2022-02-13-don't answer by yourself
CAD ARX 获取当前的视口设置
ESP系列引脚说明图汇总
LDAP Application Section (4) Jenkins Access
Is it safe to open an account in Zheshang futures?
Image fusion -- challenges, opportunities and Countermeasures
Char to leading 0