When posting plain object, pc.Http.request encodes both keys and values with escape. They should be encoded with encodeURIComponent instead.
For example: escape('你好') results in '%u4F60%u597D' while encodeURIComponent('你好') produces '%E4%BD%A0%E5%A5%BD' and the correct value to send is '%E4%BD%A0%E5%A5%BD'.
When posting plain object,
pc.Http.request
encodes both keys and values withescape
. They should be encoded withencodeURIComponent
instead.For example:
escape('你好')
results in'%u4F60%u597D'
whileencodeURIComponent('你好')
produces'%E4%BD%A0%E5%A5%BD'
and the correct value to send is'%E4%BD%A0%E5%A5%BD'
.