当前位置:网站首页>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
边栏推荐
- 【MySQL】数据库的存储过程与存储函数通关教程(完整版)
- 2022.02.13 - 238. Maximum number of "balloons"
- 指针和数组笔试题解析
- Beijing invitation media
- [cloud native] teach you how to build ferry open source work order system
- Use Alibaba icon in uniapp
- 【云原生】手把手教你搭建ferry开源工单系统
- CISP-PTE实操练习讲解
- Chinese Remainder Theorem (Sun Tzu theorem) principle and template code
- Day29-t77 & t1726-2022-02-13-don't answer by yourself
猜你喜欢
C language - bit segment
你想知道的ArrayList知识都在这
Yyds dry goods inventory three JS source code interpretation eventdispatcher
Sort according to a number in a string in a column of CSV file
Nft智能合约发行,盲盒,公开发售技术实战--拼图篇
Use Alibaba icon in uniapp
Verrouillage [MySQL]
[cloud native] teach you how to build ferry open source work order system
[secretly kill little partner pytorch20 days -day01- example of structured data modeling process]
ESP series pin description diagram summary
随机推荐
Circular reference of ES6 module
tree树的精准查询
延迟初始化和密封类
Let the bullets fly for a while
Synchronized solves problems caused by sharing
使用 BR 恢复 S3 兼容存储上的备份数据
【MySQL】数据库的存储过程与存储函数通关教程(完整版)
2022.02.13 - NC003. Design LRU cache structure
synchronized 解决共享带来的问题
从 TiDB 集群迁移数据至另一 TiDB 集群
Rviz仿真时遇到机器人瞬间回到世界坐标原点的问题及可能原因
Summary of phased use of sonic one-stop open source distributed cluster cloud real machine test platform
指针进阶---指针数组,数组指针
pcd转ply后在meshlab无法打开,提示 Error details: Unespected eof
[research materials] 2021 Research Report on China's smart medical industry - Download attached
Introduction to number theory (greatest common divisor, prime sieve, inverse element)
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
使用 TiUP 升级 TiDB
[research materials] 2022 enterprise wechat Ecosystem Research Report - Download attached
从 SQL 文件迁移数据到 TiDB