Html 表单POST中的双UTF-8编码

Html 表单POST中的双UTF-8编码,html,forms,utf-8,Html,Forms,Utf 8,我正在尝试提交一个包含UTF-8字符的表单 <form id="workflowPersistForm" class="invisibleClass" accept-charset="UTF-8" enctype="application/x-www-form-urlencoded; charset=UTF-8" method="post" action="/workflow-next"> <input id="stateGlobal" type="hidden" valu

我正在尝试提交一个包含UTF-8字符的表单

<form id="workflowPersistForm" class="invisibleClass" accept-charset="UTF-8" enctype="application/x-www-form-urlencoded; charset=UTF-8" method="post" action="/workflow-next">
  <input id="stateGlobal" type="hidden" value="お問い合わせ" name="state"/>
</form>

问题在于,在查询日志中,日文字符是乱码的,从响应来看,它们似乎是双重编码的(UTF-8)

如果我使用GET而不是POST,一切都会正常。
谁能帮帮我吗?这在哪里得到双重编码?如何修复它?

据我所知,实际上无法对UTF-8进行“双重编码”(与十六进制和Base64等二进制编码不同),如果应用相同的操作两次,则不会发生任何事情(意味着输入将与一次相同)

你到底得到了什么?
您是如何处理该输入的?

通常,双编码UTF-8指将某些内容编码为UTF-8,将结果解码为ISO-8859-1,然后再次编码为UTF-8。由于这种情况,这可以称为双utf-8编码。