当前位置:网站首页>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
边栏推荐
- 远程存储访问授权
- leetcode刷题 (5.31) 字符串
- 指针和数组笔试题解析
- Colorlog结合logging打印有颜色的日志
- VMware virtualization cluster
- 2022.02.13 - 238. Maximum number of "balloons"
- [cloud native] teach you how to build ferry open source work order system
- Configuring OSPF load sharing for Huawei devices
- 2022.02.13 - NC001. Reverse linked list
- 在 uniapp 中使用阿里图标
猜你喜欢
![[research materials] 2022 enterprise wechat Ecosystem Research Report - Download attached](/img/35/898a8086bc35462b0fcb9e6b58b86b.jpg)
[research materials] 2022 enterprise wechat Ecosystem Research Report - Download attached

Deep learning: derivation of shallow neural networks and deep neural networks

2022.02.13 - NC004. Print number of loops

ESP series pin description diagram summary
![[research materials] 2022 China yuancosmos white paper - Download attached](/img/b4/422dff0510bbe67f3578202d6e80b7.jpg)
[research materials] 2022 China yuancosmos white paper - Download attached

化不掉的钟薛高,逃不出网红产品的生命周期

How to use information mechanism to realize process mutual exclusion, process synchronization and precursor relationship

What is the use of entering the critical point? How to realize STM32 single chip microcomputer?

Let the bullets fly for a while

2022.02.13 - NC003. Design LRU cache structure
随机推荐
Cisp-pte practice explanation
Sort according to a number in a string in a column of CSV file
CISP-PTE实操练习讲解
[research materials] 2022 China yuancosmos white paper - Download attached
【刷题】牛客网面试必刷TOP101
Modify the video name from the name mapping relationship in the table
Char to leading 0
Is it safe to open an account in Zheshang futures?
From monomer structure to microservice architecture, introduction to microservices
将 NFT 设置为 ENS 个人资料头像的分步指南
2022.02.13 - NC001. Reverse linked list
JVM 快速入门
【云原生】手把手教你搭建ferry开源工单系统
Migrate data from SQL files to tidb
NFT smart contract release, blind box, public offering technology practice -- contract
Golang DNS 随便写写
LDAP Application Section (4) Jenkins Access
Nft智能合约发行,盲盒,公开发售技术实战--合约篇
[2022 Guangdong saim] Lagrange interpolation (multivariate function extreme value divide and conquer NTT)
Analysis of pointer and array written test questions