[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: SOAP4R throws exception on copyright character

Brian Marick

11/9/2003 10:24:00 PM

Once again, you have saved me. Thank you.

On Saturday, November 8, 2003, at 06:49 PM, NAKAMURA, Hiroshi wrote:

> Hi, good morning from far east.
>
>> From: "Brian Marick" <marick@testing.com>
>> Sent: Sunday, November 09, 2003 5:57 AM
>
>> % ruby wsdlDriver.rb 'Mark Swanson'
>> /usr/local/lib/ruby/1.8/xsd/datatypes.rb:184:in `_set':
>> {http://www.w3.org/2001...}string: cannot accept 'Artwork by
>> <b>Mark</b> <b>Swanson</b> Copyright © 2002 <b>Mark</b>
>> <b>Swanson</b>. All rights reserved. '. (XSD::ValueSpaceError)
>> from /usr/local/lib/ruby/1.8/xsd/datatypes.rb:125:in `set'
>> from /usr/local/lib/ruby/1.8/soap/encodingstyle/soapHandler.rb:446:in
>> `decode_textbuf'
>> from /usr/local/lib/ruby/1.8/soap/encodingstyle/soapHandler.rb:223:in
>> `decode_tag_end'
>
> GoogleAPI returns "\xc2\xa9" sequence in utf-8 format. Can you try
> this?
> $ ruby -Ku wsdlDriver.rb 'Mark Swanson Copyright Artwork'
>
> There may be another reason (no iconv?) though... I cannot reproduce
> the same error on my linux/cygwin boxes even though I run the
> wsdlDriver.rb with "-Kn".
>
> Beside this, I should add '$KCODE = "UTF8"' at the head of the
> wsdlDriver.rb.
>
> Regards,
> // NaHi
>
>
>

-----
Brian Marick
Consulting, training, contracting, and research
Focused on the intersection of testing, programming, and design
marick@testing.com, marick@visibleworkings.com
www.testing.com, www.visibleworkings.com