当前位置:网站首页>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
边栏推荐
- sys.argv
- 从表中名称映射关系修改视频名称
- 根据csv文件某一列字符串中某个数字排序
- TiDB备份与恢复简介
- vulnhub hackme: 1
- Sort according to a number in a string in a column of CSV file
- Make learning pointer easier (3)
- China vanadium battery Market Research and future prospects report (2022 Edition)
- CAD ARX gets the current viewport settings
- Grayscale upgrade tidb operator
猜你喜欢

在 uniapp 中使用阿里图标

【MySQL】锁

704 二分查找

你想知道的ArrayList知识都在这

Ruffian Heng embedded bimonthly, issue 49

Sort according to a number in a string in a column of CSV file

ROS编译 调用第三方动态库(xxx.so)

2022.02.13 - NC001. Reverse linked list

NFT smart contract release, blind box, public offering technology practice -- contract

hcip--mpls
随机推荐
Configuring OSPF load sharing for Huawei devices
hcip--mpls
Restore backup data on S3 compatible storage with br
Golang force buckle leetcode 1020 Number of enclaves
Step by step guide to setting NFT as an ens profile Avatar
[brush questions] top101 must be brushed in the interview of niuke.com
使用 BR 恢复 S3 兼容存储上的备份数据
LDAP应用篇(4)Jenkins接入
Sort according to a number in a string in a column of CSV file
2022.02.13 - NC002. sort
TiDB备份与恢复简介
logback1.3. X configuration details and Practice
【MySQL】鎖
[research materials] 2021 Research Report on China's smart medical industry - Download attached
leetcode刷题 (5.28) 哈希表
C语言自定义类型:结构体
CAD ARX 获取当前的视口设置
[research materials] 2021 China online high growth white paper - Download attached
2022.02.13 - NC004. Print number of loops
Online yaml to CSV tool