You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Julian Hille <ju...@netimpact.de> on 2011/01/06 08:23:27 UTC

utf-8 tomcat and solr problem

Hi,

if i search for a german umlaut like ä or ö i get something like weird conversions from latin to utf in query response. The encoding of the result is ok,
but not the "you queried for this" part. There is my "ä" wrong encoded.  There it seems like it had been interpreted from latin to utf 8.

Solr is set to use utf-8 and tomcat got in the connector URIEncoding="UTF-8" but that didnt change anything.

Any help greatly appreciated.


Mit freundlichen Grüßen,
Julian Hille



NetImpact KG
Julian Hille, Leiter Entwicklung
Kiebitzhof 9
22089 Hamburg

www.netimpact.de
Tel: 040/67383633
Fax: 040/38645347
E-Mail: julian@netimpact.de

Geschäftsführer: Tarek Müller
Amtsgericht Hamburg, HRA 108811
Xing: https://www.xing.com/profile/Julian_Hille2


Re: utf-8 tomcat and solr problem

Posted by Yonik Seeley <yo...@lucidimagination.com>.
On Thu, Jan 6, 2011 at 2:23 AM, Julian Hille <ju...@netimpact.de> wrote:
> Hi,
>
> if i search for a german umlaut like ä or ö i get something like weird conversions from latin to utf in query response. The encoding of the result is ok,
> but not the "you queried for this" part. There is my "ä" wrong encoded.  There it seems like it had been interpreted from latin to utf 8.
>
> Solr is set to use utf-8 and tomcat got in the connector URIEncoding="UTF-8" but that didnt change anything.

You can verify that the container is configured correctly via
example/exampledocs/test_utf8.sh

Another trick I sometimes use is to use the python response format
(wt=python) since that uses escapes for anything outside of ASCII and
then it's easy to see the actual unicode value that's being returned
in a response.

-Yonik
http://www.lucidimagination.com