You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by James Bates <ja...@amplexor.com> on 2002/05/15 11:25:25 UTC

RE: Thanks.. and more question

No, sorry I'm not sure what might be happening there.

I know that JSP on Tomcat has some problems when processing Unicode data in HTML form responses. Maybe if you show us your JSP page it might be easier to see?

> -----Original Message-----
> From: Park NamKyu [mailto:parknamkyu@hotmail.com]
> Sent: 15 May 2002 05:03
> To: James Bates
> Subject: Thanks.. and more question
> 
> 
> Thanks for kindly answer. 
> 
> I apply patch from SCV but Xindice has problem with Unicode 
> like Korean. 
> Here is server spec:
> 
> OS : Redhat 7,2 English (Lang : En(default), Korean)
> Server : Tomcat 4.0+apache 1.3.29+Xindice 1.0
> 
> I insert xml data with Korean into Xindice by two methods. 
> First, I make 
> Java  application which insert data into Xindice by using 
> Xindice Client. 
> It has no problem for inserting and retrieving documents. 
> Korean is well. 
> 
> Second, I make JSP which has same mechanic with above Java 
> application. But 
> Korean has broken when inserting and reading. 
> 
> Is there diffrence with application and Server program? 
> 
> regard for your help. 
> 
> 
> ------ Here is old message from james.bates@amplexor.com ------
> The toString() method should look like this:
> 
>    public String toString() {
>       ByteArrayOutputStream output = new ByteArrayOutputStream();
> 
>       try {
>          write(output);
>          return new String(output.toByteArray(), "utf-8");
>       }
>       catch ( Exception e ) {
>          org.apache.xindice.Debug.printStackTrace(e);
>          return null;
>       }
>    }
> 
> It is in the CVS now, so you can simply download the latest 
> CVS sources of 
> Xindice.
> In answer to your question, Korean should be no problem, as 
> long as you can 
> handle
> UTF-8 output.
> 
> James
> 
> 
> > -----Original Message-----
> > From: Park NamKyu [mailto:parknamkyu@hotmail.com]
> > Sent: 13 May 2002 04:57
> > To: James Bates
> > Subject: Hello, I need your help.
> > 
> > 
> > Hi,James Bates
> > 
> > I watch your content in Xindice-Archive well and read 
> > patch.txt. I update 
> > source as mentioned "patch.txt" and compile all src. But 
> there is one 
> > Error. It is :
> > 
> > --------------------------------------------------------------
> > ------------------
> > 
> >    TextWriter.java:305: cannot resolve symbol
> >    symbol  : method toByteArray  ()
> >    location: class java.io.StringWriter
> >             return new String(writer.toByteArray(), "utf-8");
> >                                  ^
> >    1 error
> > --------------------------------------------------------------
> > ------------------
> > 
> > 
> > I can't find "return output.toString();" in TextWriter.java. 
> > So I update 
> > similar part "return writer.toString();" as "return new 
> > String(writer.toByteArray(), "utf-8");". But when compiling, 
> > there is 1 
> > error showed Above. What missing? Are there more thing to fix? 
> > 
> > Also, I have one question. When I did this patch, can I use 
> "Korean" 
> > character in Xindice? I use Linux RedHat 7.2(English version) 
> > and I want to 
> > use Xindiec and Tomcat(JSP/servlet) with Xindice Client API.
> > 
> > regards for answer. Thanks for reading.
> > 
> 
> 
> 
> 
> _________________________________________________________________
> 전세계인이 함께하는 무료 웹 메일 서비스인 MSN Hotmail을 만나 보세요. 
> http://www.hotmail.com/KO
> 
>