[
https://issues.apache.org/jira/browse/SOLR-4265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13544677#comment-13544677
]
Alex Rocher commented on SOLR-4265:
-----------------------------------
On my experience, all the application servers I've used have the same behavior
: Tomcat, JBoss, GlassFish, Oracle Application Server, WebLogic and WebSphere.
If character encoding is known through the HTTP request, then the parameter Map
is correctly converted in unicode. If not known, the conversion is done in
8859-1 and its the servlet (or other) responsability to reencode each parameter
properly.
>From html pages, I think it's the meta tag charset that define the charset in
>which the URL parameters should be encoded.
As mentionned in a previous post, browsers never send the character encoding in
the http request (IEx, Firefox, Chrome, Opera). The only way to force the
charset in request is to use XMLHttpRequest JS API.
OK with you : a parameter should always be in US7ASCII range, much more simple
:-)
> Fix decoding of GET/POST parameters for servlet containers with non-UTF-8 URL
> parsing (Tomcat)
> ----------------------------------------------------------------------------------------------
>
> 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
> Assignee: Uwe Schindler
> Attachments: CropperCapture[4].png, CropperCapture[5].png,
> CropperCapture[6].png, SOLR-4265.patch, SOLR-4265.patch,
> 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]