Re: problem with ShowFileRequestHandler

2008-04-02 Thread 李银松
Thanks Ryan 2008/4/2, Ryan McKinley <[EMAIL PROTECTED]>: > > > On Apr 2, 2008, at 5:03 AM, 李银松 wrote: > > > Edward.Zhang had commit the problem before > > > > I want to programmatically retrieve the schema and the config from the > > > ShowFileRequestHandler. I encounter some trouble. There are C

Re: problem with ShowFileRequestHandler

2008-04-02 Thread Ryan McKinley
On Apr 2, 2008, at 5:03 AM, 李银松 wrote: Edward.Zhang had commit the problem before I want to programmatically retrieve the schema and the config from the ShowFileRequestHandler. I encounter some trouble. There are CJK characters in the xml files as follows: 记录号 But I get a confusing

problem with ShowFileRequestHandler

2008-04-02 Thread 李银松
Edward.Zhang had commit the problem before > I want to programmatically retrieve the schema and the config from the > ShowFileRequestHandler. I encounter some trouble. There are CJK characters > in the xml files as follows: > > > > > > 记录号 > > > > But I get a confusing response from solr using

Re: Some problem with ShowFileRequestHandler

2008-03-06 Thread Edward Zhang
Oh,I am sorry, Ryan, I am afriad I made a mistake. It doesn't work yet.When I deploy the new war, it looks like before. I rewrite to "IOUtils.copy( content.getStream(), writer, "utf-8" )" and it works fine again!

Re: Some problem with ShowFileRequestHandler

2008-03-06 Thread Edward Zhang
It wroks, and a request with argument "&contentType=text/xml;charset=utf-8" required to show my CJK characters in my config file. Thanks, Ryan On 3/7/08, Ryan McKinley <[EMAIL PROTECTED]> wrote: > > Thanks for pointing this out. > > In trunk, I changed the RawResponseWriter to use the Reader rat

Re: Some problem with ShowFileRequestHandler

2008-03-06 Thread Ryan McKinley
Thanks for pointing this out. In trunk, I changed the RawResponseWriter to use the Reader rather then the Stream -- this way, you should not have to specify the contentType to make it match the FileReader. Does this fix your issues? thanks ryan Edward Zhang wrote: > My workmate and me found a

Re: Some problem with ShowFileRequestHandler

2008-03-06 Thread Edward Zhang
My workmate and me found a solution to this problem: it caused by org.apache.solr.request.RawResponseWriter. Solr required the config file encoded in UTF-8 by far. But when RawResponseWriter put the byte stream to writer, it doesn't notice the characters encoding.There may be some trouble when the

Some problem with ShowFileRequestHandler

2008-03-05 Thread Edward Zhang
I want to programmatically retrieve the schema and the config from the ShowFileRequestHandler. I encounter some trouble. There are CJK characters in the xml files as follows: > > 记录号 > But I get a confusing response from solr using "/admin/file/?file=schema.xml". IE and firefox both report p