当前位置:网站首页>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
边栏推荐
- Modify the video name from the name mapping relationship in the table
- MySQL learning record 10getting started with JDBC
- [research materials] 2022 China yuancosmos white paper - Download attached
- From monomer structure to microservice architecture, introduction to microservices
- 你想知道的ArrayList知识都在这
- Analysis of Top1 accuracy and top5 accuracy examples
- Mobile Test Engineer occupation yyds dry goods inventory
- C语言自定义类型:结构体
- 【MySQL】锁
- sys.argv
猜你喜欢
Make learning pointer easier (3)
指针和数组笔试题解析
[secretly kill little partner pytorch20 days -day01- example of structured data modeling process]
PLT in Matplotlib tight_ layout()
Online yaml to CSV tool
MySQL learning record 11jdbcstatement object, SQL injection problem and Preparedstatement object
Nacos Development Manual
【MySQL】数据库的存储过程与存储函数通关教程(完整版)
IP lab, the first weekly recheck
How to use information mechanism to realize process mutual exclusion, process synchronization and precursor relationship
随机推荐
Step by step guide to setting NFT as an ens profile Avatar
2022.02.13 - NC003. Design LRU cache structure
Configuring OSPF load sharing for Huawei devices
你想知道的ArrayList知识都在这
Colorlog combined with logging to print colored logs
Tidb backup and recovery introduction
延迟初始化和密封类
[2022 Guangdong saim] Lagrange interpolation (multivariate function extreme value divide and conquer NTT)
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
1. Color inversion, logarithmic transformation, gamma transformation source code - miniopencv from zero
根据csv文件某一列字符串中某个数字排序
化不掉的钟薛高,逃不出网红产品的生命周期
Mobile Test Engineer occupation yyds dry goods inventory
matplotlib. Widgets are easy to use
Summary of MySQL index failure scenarios
Pointer advanced --- pointer array, array pointer
面向个性化需求的在线云数据库混合调优系统 | SIGMOD 2022入选论文解读
CAD ARX gets the current viewport settings
从 SQL 文件迁移数据到 TiDB
ESP series pin description diagram summary