ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gus Mueller <...@mu.org>
Subject Re: setEncoding broken? (Was re: accented characters in XMLRPC arguments)
Date Thu, 11 Dec 2003 19:51:52 GMT
John Wilson (tug@wilson.co.uk) wrote:

<snip>

> At one point in time the XML-RPC spec limited the Unicode characters in 
> strings to be ASCII. The Apache XML-RPC actually limited them to be ISO 
> 8859/1. Some time ago that restriction was lifted but the XML-RPC code 
> has not been updated to reflect this.

Would it be out of the question to create a method like
setUseAllUnicode(boolean) or something similar, that would flag
XMLWriter not to throw an exception on chars above 0xff?  Or maybe if it
saw that the encoding was set to utf-8, it wouldn't throw an exception?

thanks,

-gus



> 
> You are trying to send a character with a value of 8730 (the 
> mathematical operator square root). Currently Apache XML-RPC won't 
> support that.
> 
> The encoding is irrelevant. Any encoding is capable of expressing all 
> the Unicode characters.
> 
> If you want to patch your code to fix this look in XMLWriter.java and 
> find where it throws the exception.
> 
> Change
> 
> if (c < 0x20 || c > 0xff)
> 
> to
> 
> if (c < 0x20)
> 
> This should fix your problem no matter what encoding is used.
> 
> 
> 
> John Wilson
> The Wilson Partnership
> http://www.wilson.co.uk
> 

-gus

--  
August Mueller
http://flyingmeat.com/
VoodooPad - 1st Place U.S., O'Reilly Mac OS X Innovators Contest round 2
"Christmas means carnage!"  -- Ferdinand, the duck

Mime
View raw message