[
https://issues.apache.org/jira/browse/SOLR-4265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13544278#comment-13544278
]
Uwe Schindler commented on SOLR-4265:
-------------------------------------
Yonik,
this is a similar problem like the broken Reader/Writer implementations we had
in Jetty, that corrupted UTF-8. We no longer user ServletRequest.getReader()
nor ServletResponse.getWriter() as the definition waht they do is too vague and
the implementations in e.g. Jetty (but also Tomcat) are broken. The solution to
this is to ignore this addon-functionality in the servlet container and use the
InputStream and OutputStream only (this is what I did in an earlier issue).
We should do the same here to get invariant from configuration directives
outside of Solr's influence. The solution to this is to get the query string
and decode it (undo &, =, percent encoding) with a URLDecoder configured to use
UTF-8. I am currently looking into doing this. When we fixed this,
SolrDispatchFilter and the other servlets is container invariant.
> 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]