From: Brian Marick Date: 2003-11-10T07:23:58+09:00 Subject: Re: SOAP4R throws exception on copyright character 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" >> 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/XMLSchema}string: cannot accept 'Artwork by >> Mark Swanson Copyright �� 2002 Mark >> Swanson. 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