url decode for unicode [closed]
How can I decode unicode characters from an URL?. I specified response.charset="UTF-8"
in my request, and I received unicode characters like %e3%81%a4%e3%82%8c%e3%
. How can I convert these to something I can display on my form?
RFC 3986 specifies how to interpret this. You first decode the percent-escaped byte values in the standard way. Then you interpret the byte stream as UTF-8 to reconstruct the characters. You can find more information here.
精彩评论