[
https://issues.apache.org/jira/browse/SOLR-4265?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Uwe Schindler updated SOLR-4265:
--------------------------------
Attachment: SolrDispatchFilter.java.patch
Hi,
I never understood why you have to set the parameter encoding in your servlet
container. Although this is somehow "undocumented", you can use
ServletResponse.setCharacterEncoding() to set the encoding of your serlet
input. Unfortunately this sets also the encoding for the request body, but
thats irrelevant for us, because we use InputStream only.
The attached patch simply does this on SolrDispatchFilter's startup of GET
method (important: *before any parameter is read*).
I am just not sure if this works with ServletFilters, but with conventional
Servlets this works 100% and used in all my servlets I ever wrote. I never need
to configure my Jetty or Sun Java System Webserver - no test on Tomcat.
Can somebody try this and report back?
> 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]