[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlrpc-user
Subject:    RE: International String
From:       "Patil, Sudhir \(GE Infrastructure\)" <Sudhir.Patil3 () ge ! com>
Date:       2005-05-13 8:39:46
Message-ID: 41EB3CF9F75B324AB4F27825C8DC3A8F0DB1B849 () BANMLVEM02 ! e2k ! ad ! ge ! com
[Download RAW message or body]

Sorry its in function chardata() in XmlWriter.java

default:
                if (c < 0x20 || c > 0xff)
change this to
default:
                if (c < 0x20 )

-----Original Message-----
From: Vee Satayamas [mailto:veetai@yahoo.com]
Sent: Thursday, May 12, 2005 4:14 PM
To: xmlrpc-user@ws.apache.org
Subject: RE: International String


Hello,

In file XmlWriter.java

// Write the character in our encoding.
write(new String(String.valueOf(c).getBytes(enc)));

Should this line be changed to ``write(c);'' because
XmlWriter.write(int) encode encoded string 
from XmlWriter.write(Byte[])?
Did I misunderstand?

Regards,
Vee Satayamas

--- "Patil, Sudhir (GE Infrastructure)"
<Sudhir.Patil3@ge.com> wrote:
> Hi,
> 
> Just setEncoding("UTF-8") doesn't support multibyte
> characters. You need to recompile source with
> fallowing changes.
> 
> file XmlRpc.java function parse add line below.
> parser.parse(new InputSource( new
> InputStreamReader(is,getencoding()) ) );
> 
> in XmlWriter.java function init
> there is check to block characters greater than 0xff
> like c>0xff remove it
> 
> Regards,
> Sudhir
> 
> 
> -----Original Message-----
> From: Vee Satayamas [mailto:veetai@yahoo.com]
> Sent: Thursday, May 12, 2005 12:42 PM
> To: xmlrpc-user@ws.apache.org
> Subject: International String
> 
> 
> Hello,
> 
> I want to use Apache XML-RPC to send 
> and receive international string by
> using UTF-8
> 
> My code:
> 
> XmlRpc.setEncoding("UTF-8");
> XmlRpcClient proxy = new
> XmlRpcClient("http://chopin.cpe.ku.ac.th:8000");
> 
> Vector params = new Vector();
> params.addElement("à¸-à¸"สà¸à¸s");
> System.out.println((String)proxy.execute("echo",
> params));
> 
> My server is python xmlrpclib and
> I use Apache XML-RPC ( cvs trunk )
> as client.
> 
> This system works correctly with English string
> but for Thai string, it doesn't work.
> 
> What should I do?
> 
> Thank you,
> Vee Satayamas
> 
> My Weblog:   http://www.exteen.com/veer
> My Homepage: http://vee.pompoko35.com/
> 
> Please avoid sending me Word or PowerPoint
> attachments.
> See
>
http://www.fsf.org/philosophy/no-word-attachments.html
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 

My Weblog:   http://www.exteen.com/veer
My Homepage: http://vee.pompoko35.com/

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html


		
__________________________________ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic