[
https://issues.apache.org/jira/browse/SOLR-4265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13544309#comment-13544309
]
Yonik Seeley commented on SOLR-4265:
------------------------------------
bq. getQueryString() does not do any decoding, the part after the ? in the
request URL is returned unmodified. And this one contains only ASCII, if the
URL is correct, because the HTTP protocol only knows ASCII
It's also nice to be able to handle bare UTF-8 (i.e. not necessarily percent
encoded if outside of the ASCII range). I've run across one browser that does
this, and curl itself - for example:
curl 'http://localhost:8983/solr/query?q=héllo'
So if the container is still decoding the bytes into a String before we get it
(and assumes latin-1), we still can't fix that part. It would still an
improvement to be able to handle percent encoded UTF-8 by default though, and
the bare-UTF8 should still work for containers configured correctly (like Jetty
by default).
> Encoding problem from test console
> ----------------------------------
>
> Key: SOLR-4265
> URL: https://issues.apache.org/jira/browse/SOLR-4265
> Project: Solr
> Issue Type: Bug
> Components: web gui
> Affects Versions: 4.0
> Environment: Windows but, environment independent
> Reporter: Alex Rocher
> Priority: Blocker
> Attachments: SolrDispatchFilter.java.patch
>
>
> When you type an accent (in french language for example) in the console query
> tester, there's no charset conversion (servlet request charset conversion)
> Eg.: "même" is converted into it's ISO-8859-1 representation ==> fail
> The reason : getCharacterEncoding from HTTPRequest is not tested. Il it's
> null, il will assume to convert an UTF-8 encoding charset.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]