I have a search REST
service implemented using Spring MVC
that returns a response in JSON
. The response contains hrefs (self, etc) that contain the search term. A Chinese search term is not displaying correctly in the hrefs, it is displayed like this:
%E5%A4%AA%E9%99%BD%E7%B3%BB%E4%B8%AD
I tried using URLEndoer.encode(myString, "UTF-8")
but that didn't work.
EDIT
I found the root cause, it was a call to New URI(myparams).toAsciiString()
that was causing the issue.