After making an XHR get request to my server side, I encountered a problem with Chinese characters in the request URL. While non-IE browsers worked fine, IE8 did not automatically encode the characters, leading to data handling issues on the server side. How can this be resolved?
I looked into posts discussing URL encoding/decoding and learned that before sending a request, I should first encode the characters using:
encodeURIComponent
decodeURIComponent
However, I am unsure about how other browsers will handle the encoded characters. Will they double encode them if I manually encode them? If so, how should the server side deal with this?