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 Kiwi de coder <ki...@gmail.com> on 2011/09/18 19:14:58 UTC

Re: Tomcat unicode problems with IE 9, Firefox 6 and solrj client

maybe set on tomcat connector ?

 <Connector ... URIEncoding="UTF-8"/>

kiwi

On Mon, Sep 19, 2011 at 12:56 AM, Xue-Feng Yang <ju...@yahoo.com> wrote:

> The first returned link for Firefox 6 is the same as the returned link for
> IE 9. I was misread.
>
> So the encode is this one. Anyone knows what it is.
>
>
>
> ________________________________
> From: Xue-Feng Yang <ju...@yahoo.com>
> To: "solr-user@lucene.apache.org" <so...@lucene.apache.org>
> Sent: Sunday, September 18, 2011 12:48:31 PM
> Subject: Tomcat unicode problems with IE 9, Firefox 6 and solrj client
>
> Now I moved to Tomcat 6 for another round testing.
>
>
> All English cores are OK for IE 9,  Firefox 6  and solrj client.
>
> When I tested with Chinese cores, IE 9 is OK whatever I played on it.
>
>
> Firefox 6 is a little different:
>
> 1) If I set Query String to "content:耶和华" without qotations in page
> http://localhost:18080/solr/cuv/admin/, I had return
>
> <response><lst name="responseHeader"><int name="status">0</int><int
> name="QTime">1</int><lst name="params"><str name="indent">on</str><str
> name="start">0</str><str name="q">content:耶和华</str><str
> name="rows">10</str><str name="version">2.2</str></lst></lst><result
> name="response" numFound="5908" start="0"><doc><str name="id">申命记
> 2:2</str></doc><doc><str name="id">出埃及记 13:1</str></doc><doc><str
> name="id">出埃及记 14:1</str></doc><doc><str name="id">出埃及记
> 16:11</str></doc><doc><str name="id">出埃及记 25:1</str></doc><doc><str
> name="id">出埃及记 30:11</str></doc><doc><str name="id">出埃及记
> 30:17</str></doc><doc><str name="id">出埃及记 30:22</str></doc><doc><str
> name="id">出埃及记 31:1</str></doc><doc><str name="id">出埃及记
> 31:12</str></doc></result></response>
>
>
> the link went to
> http://localhost:18080/solr/cuv/select/?q=content%3A%E8%80%B6%E5%92%8C%E5%8D%8E&version=2.2&start=0&rows=10&indent=on
> and %E8%80%B6%E5%92%8C%E5%8D%8E is visible as 耶和华。
>
> 2) If I refreshed, it kept the same.
>
> 3) If I highlighted the link and placed Enter key, then the returned link
> was
> http://localhost:18080/solr/cuv/select/?q=content%3A%D2%AE%BA%CD%BB%AA&version=2.2&start=0&rows=10&indent=on
> which was different from the above link. The returned page was
>
> <response><lst name="responseHeader"><int name="status">0</int><int
> name="QTime">1</int><lst name="params"><str name="indent">on</str><str
> name="start">0</str><str name="q">content:Ү�ͻ�</str><str
> name="rows">10</str><str name="version">2.2</str></lst></lst><result
> name="response" numFound="0" start="0"/></response>
>
> Actually, in IE 9, the returned link is always
>
>
> http://localhost:18080/solr/cuv/select/?q=content%3A%E8%80%B6%E5%92%8C%E5%8D%8E&version=2.2&start=0&rows=10&indent=on
>
> which is different from both of Firefox 6.
>
> For solrj client, I tested many ways to encode, but all return no results.
> What is the right encode way? Any help is welcome.
>

Re: Tomcat unicode problems with IE 9, Firefox 6 and solrj client

Posted by Xue-Feng Yang <ju...@yahoo.com>.
I saw this in the doc and set it before I started up tomcat first time. All results I posted is with this configuration.


Thanks anyway.


________________________________
From: Kiwi de coder <ki...@gmail.com>
To: solr-user@lucene.apache.org; Xue-Feng Yang <ju...@yahoo.com>
Sent: Sunday, September 18, 2011 1:14:58 PM
Subject: Re: Tomcat unicode problems with IE 9, Firefox 6 and solrj client

maybe set on tomcat connector ?

<Connector ... URIEncoding="UTF-8"/>

kiwi

On Mon, Sep 19, 2011 at 12:56 AM, Xue-Feng Yang <ju...@yahoo.com> wrote:

> The first returned link for Firefox 6 is the same as the returned link for
> IE 9. I was misread.
>
> So the encode is this one. Anyone knows what it is.
>
>
>
> ________________________________
> From: Xue-Feng Yang <ju...@yahoo.com>
> To: "solr-user@lucene.apache.org" <so...@lucene.apache.org>
> Sent: Sunday, September 18, 2011 12:48:31 PM
> Subject: Tomcat unicode problems with IE 9, Firefox 6 and solrj client
>
> Now I moved to Tomcat 6 for another round testing.
>
>
> All English cores are OK for IE 9,  Firefox 6  and solrj client.
>
> When I tested with Chinese cores, IE 9 is OK whatever I played on it.
>
>
> Firefox 6 is a little different:
>
> 1) If I set Query String to "content:耶和华" without qotations in page
> http://localhost:18080/solr/cuv/admin/, I had return
>
> <response><lst name="responseHeader"><int name="status">0</int><int
> name="QTime">1</int><lst name="params"><str name="indent">on</str><str
> name="start">0</str><str name="q">content:耶和华</str><str
> name="rows">10</str><str name="version">2.2</str></lst></lst><result
> name="response" numFound="5908" start="0"><doc><str name="id">申命记
> 2:2</str></doc><doc><str name="id">出埃及记 13:1</str></doc><doc><str
> name="id">出埃及记 14:1</str></doc><doc><str name="id">出埃及记
> 16:11</str></doc><doc><str name="id">出埃及记 25:1</str></doc><doc><str
> name="id">出埃及记 30:11</str></doc><doc><str name="id">出埃及记
> 30:17</str></doc><doc><str name="id">出埃及记 30:22</str></doc><doc><str
> name="id">出埃及记 31:1</str></doc><doc><str name="id">出埃及记
> 31:12</str></doc></result></response>
>
>
> the link went to
> http://localhost:18080/solr/cuv/select/?q=content%3A%E8%80%B6%E5%92%8C%E5%8D%8E&version=2.2&start=0&rows=10&indent=on
> and %E8%80%B6%E5%92%8C%E5%8D%8E is visible as 耶和华。
>
> 2) If I refreshed, it kept the same.
>
> 3) If I highlighted the link and placed Enter key, then the returned link
> was
> http://localhost:18080/solr/cuv/select/?q=content%3A%D2%AE%BA%CD%BB%AA&version=2.2&start=0&rows=10&indent=on
> which was different from the above link. The returned page was
>
> <response><lst name="responseHeader"><int name="status">0</int><int
> name="QTime">1</int><lst name="params"><str name="indent">on</str><str
> name="start">0</str><str name="q">content:Ү�ͻ�</str><str
> name="rows">10</str><str name="version">2.2</str></lst></lst><result
> name="response" numFound="0" start="0"/></response>
>
> Actually, in IE 9, the returned link is always
>
>
> http://localhost:18080/solr/cuv/select/?q=content%3A%E8%80%B6%E5%92%8C%E5%8D%8E&version=2.2&start=0&rows=10&indent=on
>
> which is different from both of Firefox 6.
>
> For solrj client, I tested many ways to encode, but all return no results.
> What is the right encode way? Any help is welcome.
>

Re: Tomcat unicode problems with IE 9, Firefox 6 and solrj client

Posted by Xue-Feng Yang <ju...@yahoo.com>.
conclusion: both Tomcat 6 and Glassfish 3 work with solrj client by POST.

^=^



________________________________
From: Xue-Feng Yang <ju...@yahoo.com>
To: "solr-user@lucene.apache.org" <so...@lucene.apache.org>
Sent: Sunday, September 18, 2011 4:53:25 PM
Subject: Re: Tomcat unicode problems with IE 9, Firefox 6 and solrj client

Finally, it's a known bug:

https://issues.apache.org/jira/browse/SOLR-1959




________________________________
From: Xue-Feng Yang <ju...@yahoo.com>
To: "solr-user@lucene.apache.org" <so...@lucene.apache.org>
Sent: Sunday, September 18, 2011 1:25:08 PM
Subject: Re: Tomcat unicode problems with IE 9, Firefox 6 and solrj client

Actually, it works in some cases in my post. So it's not a problem in server. 


It's a problem in client. I may have some mistakes in solrj client, but it works in English makes the thing confused. 



________________________________
From: Kiwi de coder <ki...@gmail.com>
To: solr-user@lucene.apache.org; Xue-Feng Yang <ju...@yahoo.com>
Sent: Sunday, September 18, 2011 1:14:58 PM
Subject: Re: Tomcat unicode problems with IE 9, Firefox 6 and solrj client

maybe set on tomcat connector ?

<Connector ... URIEncoding="UTF-8"/>

kiwi

On Mon, Sep 19, 2011 at 12:56 AM, Xue-Feng Yang <ju...@yahoo.com> wrote:

> The first returned link for Firefox 6 is the same as the returned link for
> IE 9. I was misread.
>
> So the encode is this one. Anyone knows what it is.
>
>
>
> ________________________________
> From: Xue-Feng Yang <ju...@yahoo.com>
> To: "solr-user@lucene.apache.org" <so...@lucene.apache.org>
> Sent: Sunday, September 18, 2011 12:48:31 PM
> Subject: Tomcat unicode problems with IE 9, Firefox 6 and solrj client
>
> Now I moved to Tomcat 6 for another round testing.
>
>
> All English cores are OK for IE 9,  Firefox 6  and solrj client.
>
> When I tested with Chinese cores, IE 9 is OK whatever I played on it.
>
>
> Firefox 6 is a little different:
>
> 1) If I set Query String to "content:耶和华" without qotations in page
> http://localhost:18080/solr/cuv/admin/, I had return
>
> <response><lst name="responseHeader"><int name="status">0</int><int
> name="QTime">1</int><lst name="params"><str name="indent">on</str><str
> name="start">0</str><str name="q">content:耶和华</str><str
> name="rows">10</str><str name="version">2.2</str></lst></lst><result
> name="response" numFound="5908" start="0"><doc><str name="id">申命记
> 2:2</str></doc><doc><str name="id">出埃及记 13:1</str></doc><doc><str
> name="id">出埃及记 14:1</str></doc><doc><str name="id">出埃及记
> 16:11</str></doc><doc><str name="id">出埃及记 25:1</str></doc><doc><str
> name="id">出埃及记 30:11</str></doc><doc><str name="id">出埃及记
> 30:17</str></doc><doc><str name="id">出埃及记 30:22</str></doc><doc><str
> name="id">出埃及记 31:1</str></doc><doc><str name="id">出埃及记
> 31:12</str></doc></result></response>
>
>
> the link went to
> http://localhost:18080/solr/cuv/select/?q=content%3A%E8%80%B6%E5%92%8C%E5%8D%8E&version=2.2&start=0&rows=10&indent=on
> and %E8%80%B6%E5%92%8C%E5%8D%8E is visible as 耶和华。
>
> 2) If I refreshed, it kept the same.
>
> 3) If I highlighted the link and placed Enter key, then the returned link
> was
> http://localhost:18080/solr/cuv/select/?q=content%3A%D2%AE%BA%CD%BB%AA&version=2.2&start=0&rows=10&indent=on
> which was different from the above link. The returned page was
>
> <response><lst name="responseHeader"><int name="status">0</int><int
> name="QTime">1</int><lst name="params"><str name="indent">on</str><str
> name="start">0</str><str name="q">content:Ү�ͻ�</str><str
> name="rows">10</str><str name="version">2.2</str></lst></lst><result
> name="response" numFound="0" start="0"/></response>
>
> Actually, in IE 9, the returned link is always
>
>
> http://localhost:18080/solr/cuv/select/?q=content%3A%E8%80%B6%E5%92%8C%E5%8D%8E&version=2.2&start=0&rows=10&indent=on
>
> which is different from both of Firefox 6.
>
> For solrj client, I tested many ways to encode, but all return no results.
> What is the right encode way? Any help is welcome.
>

Re: Tomcat unicode problems with IE 9, Firefox 6 and solrj client

Posted by Xue-Feng Yang <ju...@yahoo.com>.
Finally, it's a known bug:

https://issues.apache.org/jira/browse/SOLR-1959




________________________________
From: Xue-Feng Yang <ju...@yahoo.com>
To: "solr-user@lucene.apache.org" <so...@lucene.apache.org>
Sent: Sunday, September 18, 2011 1:25:08 PM
Subject: Re: Tomcat unicode problems with IE 9, Firefox 6 and solrj client

Actually, it works in some cases in my post. So it's not a problem in server. 


It's a problem in client. I may have some mistakes in solrj client, but it works in English makes the thing confused. 



________________________________
From: Kiwi de coder <ki...@gmail.com>
To: solr-user@lucene.apache.org; Xue-Feng Yang <ju...@yahoo.com>
Sent: Sunday, September 18, 2011 1:14:58 PM
Subject: Re: Tomcat unicode problems with IE 9, Firefox 6 and solrj client

maybe set on tomcat connector ?

<Connector ... URIEncoding="UTF-8"/>

kiwi

On Mon, Sep 19, 2011 at 12:56 AM, Xue-Feng Yang <ju...@yahoo.com> wrote:

> The first returned link for Firefox 6 is the same as the returned link for
> IE 9. I was misread.
>
> So the encode is this one. Anyone knows what it is.
>
>
>
> ________________________________
> From: Xue-Feng Yang <ju...@yahoo.com>
> To: "solr-user@lucene.apache.org" <so...@lucene.apache.org>
> Sent: Sunday, September 18, 2011 12:48:31 PM
> Subject: Tomcat unicode problems with IE 9, Firefox 6 and solrj client
>
> Now I moved to Tomcat 6 for another round testing.
>
>
> All English cores are OK for IE 9,  Firefox 6  and solrj client.
>
> When I tested with Chinese cores, IE 9 is OK whatever I played on it.
>
>
> Firefox 6 is a little different:
>
> 1) If I set Query String to "content:耶和华" without qotations in page
> http://localhost:18080/solr/cuv/admin/, I had return
>
> <response><lst name="responseHeader"><int name="status">0</int><int
> name="QTime">1</int><lst name="params"><str name="indent">on</str><str
> name="start">0</str><str name="q">content:耶和华</str><str
> name="rows">10</str><str name="version">2.2</str></lst></lst><result
> name="response" numFound="5908" start="0"><doc><str name="id">申命记
> 2:2</str></doc><doc><str name="id">出埃及记 13:1</str></doc><doc><str
> name="id">出埃及记 14:1</str></doc><doc><str name="id">出埃及记
> 16:11</str></doc><doc><str name="id">出埃及记 25:1</str></doc><doc><str
> name="id">出埃及记 30:11</str></doc><doc><str name="id">出埃及记
> 30:17</str></doc><doc><str name="id">出埃及记 30:22</str></doc><doc><str
> name="id">出埃及记 31:1</str></doc><doc><str name="id">出埃及记
> 31:12</str></doc></result></response>
>
>
> the link went to
> http://localhost:18080/solr/cuv/select/?q=content%3A%E8%80%B6%E5%92%8C%E5%8D%8E&version=2.2&start=0&rows=10&indent=on
> and %E8%80%B6%E5%92%8C%E5%8D%8E is visible as 耶和华。
>
> 2) If I refreshed, it kept the same.
>
> 3) If I highlighted the link and placed Enter key, then the returned link
> was
> http://localhost:18080/solr/cuv/select/?q=content%3A%D2%AE%BA%CD%BB%AA&version=2.2&start=0&rows=10&indent=on
> which was different from the above link. The returned page was
>
> <response><lst name="responseHeader"><int name="status">0</int><int
> name="QTime">1</int><lst name="params"><str name="indent">on</str><str
> name="start">0</str><str name="q">content:Ү�ͻ�</str><str
> name="rows">10</str><str name="version">2.2</str></lst></lst><result
> name="response" numFound="0" start="0"/></response>
>
> Actually, in IE 9, the returned link is always
>
>
> http://localhost:18080/solr/cuv/select/?q=content%3A%E8%80%B6%E5%92%8C%E5%8D%8E&version=2.2&start=0&rows=10&indent=on
>
> which is different from both of Firefox 6.
>
> For solrj client, I tested many ways to encode, but all return no results.
> What is the right encode way? Any help is welcome.
>

Re: Tomcat unicode problems with IE 9, Firefox 6 and solrj client

Posted by Xue-Feng Yang <ju...@yahoo.com>.
Actually, it works in some cases in my post. So it's not a problem in server. 


It's a problem in client. I may have some mistakes in solrj client, but it works in English makes the thing confused. 



________________________________
From: Kiwi de coder <ki...@gmail.com>
To: solr-user@lucene.apache.org; Xue-Feng Yang <ju...@yahoo.com>
Sent: Sunday, September 18, 2011 1:14:58 PM
Subject: Re: Tomcat unicode problems with IE 9, Firefox 6 and solrj client

maybe set on tomcat connector ?

<Connector ... URIEncoding="UTF-8"/>

kiwi

On Mon, Sep 19, 2011 at 12:56 AM, Xue-Feng Yang <ju...@yahoo.com> wrote:

> The first returned link for Firefox 6 is the same as the returned link for
> IE 9. I was misread.
>
> So the encode is this one. Anyone knows what it is.
>
>
>
> ________________________________
> From: Xue-Feng Yang <ju...@yahoo.com>
> To: "solr-user@lucene.apache.org" <so...@lucene.apache.org>
> Sent: Sunday, September 18, 2011 12:48:31 PM
> Subject: Tomcat unicode problems with IE 9, Firefox 6 and solrj client
>
> Now I moved to Tomcat 6 for another round testing.
>
>
> All English cores are OK for IE 9,  Firefox 6  and solrj client.
>
> When I tested with Chinese cores, IE 9 is OK whatever I played on it.
>
>
> Firefox 6 is a little different:
>
> 1) If I set Query String to "content:耶和华" without qotations in page
> http://localhost:18080/solr/cuv/admin/, I had return
>
> <response><lst name="responseHeader"><int name="status">0</int><int
> name="QTime">1</int><lst name="params"><str name="indent">on</str><str
> name="start">0</str><str name="q">content:耶和华</str><str
> name="rows">10</str><str name="version">2.2</str></lst></lst><result
> name="response" numFound="5908" start="0"><doc><str name="id">申命记
> 2:2</str></doc><doc><str name="id">出埃及记 13:1</str></doc><doc><str
> name="id">出埃及记 14:1</str></doc><doc><str name="id">出埃及记
> 16:11</str></doc><doc><str name="id">出埃及记 25:1</str></doc><doc><str
> name="id">出埃及记 30:11</str></doc><doc><str name="id">出埃及记
> 30:17</str></doc><doc><str name="id">出埃及记 30:22</str></doc><doc><str
> name="id">出埃及记 31:1</str></doc><doc><str name="id">出埃及记
> 31:12</str></doc></result></response>
>
>
> the link went to
> http://localhost:18080/solr/cuv/select/?q=content%3A%E8%80%B6%E5%92%8C%E5%8D%8E&version=2.2&start=0&rows=10&indent=on
> and %E8%80%B6%E5%92%8C%E5%8D%8E is visible as 耶和华。
>
> 2) If I refreshed, it kept the same.
>
> 3) If I highlighted the link and placed Enter key, then the returned link
> was
> http://localhost:18080/solr/cuv/select/?q=content%3A%D2%AE%BA%CD%BB%AA&version=2.2&start=0&rows=10&indent=on
> which was different from the above link. The returned page was
>
> <response><lst name="responseHeader"><int name="status">0</int><int
> name="QTime">1</int><lst name="params"><str name="indent">on</str><str
> name="start">0</str><str name="q">content:Ү�ͻ�</str><str
> name="rows">10</str><str name="version">2.2</str></lst></lst><result
> name="response" numFound="0" start="0"/></response>
>
> Actually, in IE 9, the returned link is always
>
>
> http://localhost:18080/solr/cuv/select/?q=content%3A%E8%80%B6%E5%92%8C%E5%8D%8E&version=2.2&start=0&rows=10&indent=on
>
> which is different from both of Firefox 6.
>
> For solrj client, I tested many ways to encode, but all return no results.
> What is the right encode way? Any help is welcome.
>