[ 
https://issues.apache.org/jira/browse/SOLR-4265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13544221#comment-13544221
 ] 

Dawid Weiss commented on SOLR-4265:
-----------------------------------

I've checked on Tomcat and setting request encoding doesn't work (you need to 
specify either useBodyEncodingForURI or an explicit encoding in the connector 
config). 

Anyway, I like Uwe's idea -- parse the query string manually. This could be 
split to only cover GETs, setCharacterEncoding will be fine for POSTs.... or 
just handle both since POSTs with form-encoding are pretty much identical to 
GETs only placed in the request body.

Alex: this has nothing to do with HTTP, it's how servlet specification is 
formulated. HTTP encoding says one thing (character encoding should be sent 
from the browser along with forms, for example) but browsers do another (they 
usually don't send anything). The default encoding for decoding URIs in the 
servlet spec. is US-ASCII I believe (a subset of ISO-8859-1); you'd need to 
double check though, I may be wrong here.
                
> 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]

Reply via email to