HTML实体在API调用中编码不正确

问题描述 投票:0回答:1

我将使用Paxful API方法发送交易消息:

String message = "Do NOT PRESS 'Paid' button, until your transfer get 'Success' status.";
paxfulService.sendMessage(tradeId, message);

但是这是我在浏览器中看到的:

Screenshot of pop up with incorrectly formatted punctuation

这是我的错,还是Paxful API使用了不必要的HTML编码?

java api character-encoding html-entities html-encode
1个回答
0
投票

您正在使用的API将单引号重新编码回其十六进制值。

在原始的message字符串中,尝试使用'代替单引号。

© www.soinside.com 2019 - 2024. All rights reserved.