Why Solr admin query page interprets UTF-8 as ISO-8859-1
Posted
by
Scott Chu
on Stack Overflow
See other posts from Stack Overflow
or by Scott Chu
Published on 2012-06-13T04:37:09Z
Indexed on
2012/06/13
4:39 UTC
Read the original article
Hit count: 200
I deploy a war to my Tomcat 6.0.35 on Win7 64bit and when I use full-interface query page (I mean form.jsp) in Solr Admin to query 2 Chinese character (say it's C1C2) , the debug info shows:
<lst name="debug">
<str name="rawquerystring">æ°è</str>
<str name="querystring">æ°è</str>
<str name="parsedquery">NEWSID:æ°è</str>
<str name="parsedquery_toString">NEWSID:æ°è</str>
...
You can see C1C2 becomes æ°è. I deploy same war file to Tomcat on Linux or on another Win7 64bit of my colleagues' computer, the encoding acts well. Does anyone know why and how can I avoid this problem?
Thanks in advance!
© Stack Overflow or respective owner