Thanks - I now think it must be due to my client not sending enough ( or 
correct ) headers in the request.

Tomcat does work when using an HTTP GET but is failing the POST from my flash 
client. 

For example putting this in both firefox and IE browsers url works correctly:

http://localhost:8080/hranswers/elevate?fl=*%20score&indent=on&start=0&q=%D0%94%D0%BE%D0%B1%D0%B0%D0%B2%D0%B8%D1%82%D1%8C%20%D0%BD%D0%BE%D0%B2%D1%8B%D1%85%20%D0%BA%D0%B0%D0%BD%D0%B4%D0%B8%D0%B4%D0%B0%D1%82%D0%BE%D0%B2&fq=language_cd:ru&rows=20

The POST information my client is sending looks like this and it fails:

POST /hranswers/elevate HTTP/1.1
Accept: */*
Accept-Language: en-US
x-flash-version: 10,0,32,18
Content-Type: application/x-www-form-urlencoded
Content-Encoding: UTF-8
Content-Length: 209
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 
1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; MS-RTC LM 8; 
.NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; UserABC123)
Host: localhost:8080
Connection: Keep-Alive
Pragma: no-cache

fq=language%5Fcd%3Aru&rows=20&start=0&fl=%2A%20score&indent=on&q=%D0%94%D0%BE%D0%B1%D0%B0%D0%B2%D0%B8%D1%82%D1%8C%20%D0%BD%D0%BE%D0%B2%D1%8B%D1%85%20%D0%BA%D0%B0%D0%BD%D0%B4%D0%B8%D0%B4%D0%B0%D1%82%D0%BE%D0%B2

I will keep digging - and let you know how it turns out.

Thanks!


-----Original Message-----
From: ysee...@gmail.com [mailto:ysee...@gmail.com] On Behalf Of Yonik Seeley
Sent: Saturday, October 24, 2009 12:43 PM
To: solr-user@lucene.apache.org
Subject: Re: Solr under tomcat - UTF-8 issue

Try using example/exampledocs/test_utf8.sh to narrow down if the charset 
problems you're hitting are due to servlet container configuration.

-Yonik
http://www.lucidimagination.com


2009/10/24 Glock, Thomas <thomas.gl...@pfizer.com>:
>
> Thanks but not working...
>
> I did have the URIEncoding in place and just again moved the URIEncoding 
> attribute to be the first attribute - ensured I saved sever.xml, shut down 
> tomcat, deleted logs and cache and still no luck....  Its probably something 
> very simple and I'm just missing it.
>
> Thanks for your help.
>
>
> -----Original Message-----
> From: Zsolt Czinkos [mailto:czin...@gmail.com]
> Sent: Saturday, October 24, 2009 11:36 AM
> To: solr-user@lucene.apache.org
> Subject: Re: Solr under tomcat - UTF-8 issue
>
> Hello
>
> Have you set URIEncoding attribute to UTF-8 in tomcat's server.xml (on 
> connector element)?
>
> Like:
>
> <Connector URIEncoding="UTF-8" connectionTimeout="20000" port="8080"
> protocol="HTTP/1.1" redirectPort="8443"/>
>
> Hope this helps.
>
> Best regards
>
> czinkos
>
>
> 2009/10/24 Glock, Thomas <thomas.gl...@pfizer.com>:
>>
>> Hoping someone can help -
>>
>> Problem:
>>        Querying for non-english phrases such as Добавить do not return any 
>> results under Tomcat but do work when using the Jetty example.
>>
>>        Both tomcat and jetty are being queried by the same custom (flash) 
>> client and both reference the same solr/data/index.
>>
>>        I'm using an http POST rather than http GET to do the query to solr.  
>> I believe the problem must be in how tomcat is configured and had hoped the 
>> -Dfile.encoding=UTF-8 would solve it - but no luck.  I've stopped started 
>> tomcat and deleted the work directory as well.
>>
>>        Results are the same in both IE6 and Firefox and I've used both 
>> firebug and fiddler to view the http request/responses.  It is consistent - 
>> jetty works, tomcat does not.
>>
>> Environment:
>>        Tomcat 6 as a service on WinXP Professional 2002 sp 2
>>        Tomcat Java properties -
>>
>>        -Dcatalina.home=C:\Program Files\Apache Software 
>> Foundation\Tomcat 6.0
>>        -Dcatalina.base=C:\Program Files\Apache Software 
>> Foundation\Tomcat 6.0
>>        -Djava.endorsed.dirs=C:\Program Files\Apache Software 
>> Foundation\Tomcat 6.0\endorsed
>>        -Djava.io.tmpdir=C:\Program Files\Apache Software 
>> Foundation\Tomcat 6.0\temp
>>
>> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
>>        -Djava.util.logging.config.file=C:\Program Files\Apache 
>> Software Foundation\Tomcat 6.0\conf\logging.properties
>>        -Dfile.encoding=UTF-8
>>
>> Thanks in advance.
>> Tom Glock
>>
>>
>

Reply via email to