https 请求的url含中文参数 配置server.xml解决

xiaoxiao2021-02-28  81

在做微信小程序,发送的请求必须是https的,url中有中文参数就出现中文乱码了。

只要在server.xml中配置如下

      <Connector port="443" protocol="org.apache.coyote.http11.Http11Protocol"                maxThreads="150" SSLEnabled="true" scheme="https" secure="true"                keystoreFile=""  keystorePass=""                 URIEncoding="UTF-8"                clientAuth="false" sslProtocols = "TLS"/>

转载请注明原文地址: https://www.6miu.com/read-64729.html

最新回复(0)