Hey Chris,

   Strangely ruby seems to have minimal support for unicode(since ruby was developed in Japan it's shocking that unicode support is so far behind, unicode and basic character and string handling should seem to cover utf-8 and utf-16....no dice). I only looked at a couple of pages since I thought I might have to use unicode, fortunately, I haven't.

Also the soap libraries probably depend on string lengths which are different for unicode strings. That's my guess anyhow, who knows. There's also a rails plugin which is supposed to add better unicode support for rails which you might want to google.
This is all guesswork on my part with some bits of information I've come across. Hopefully provides at least a path to travel down.

-Charley

On 8/3/06, Chris McMahon <[EMAIL PROTECTED]> wrote:
Has no effect for me.  Adding


$KCODE = 'u'
require 'jcode'

and trying to send a Unicode string

èorà

yields the same SOAP error I've been getting:


XSD::ValueSpaceError: { http://www.w3.org/2001/XMLSchema}string: cannot
accept 'èorà'.

On 8/3/06, Charley Baker <[EMAIL PROTECTED]> wrote:
> Take a look at this link, you need to use the jcode library for unicode
> support, that being said, it'll be interesting to see if there are any
> issues that you might hit in Watir:
>
>  http://ruphus.com/blog/2005/06/11/ruby-and-unicode/
>
> I personally haven't had the occasion to use unicode in ruby yet., but maybe
> this helps.
>
> -Charley
>
>
> On 8/3/06, visweswara < [EMAIL PROTECTED] > wrote:
> > how can we make watir support utf-8 characters?, I would like to write
> japanese characters in textboxes of webpages using watir.
> >
> > I am using watir 1.4.1 and ruby 1.8.4.20(stable) build .
> > I tried using
> >
> > WIN32OLE.codepage = WIN32OLE::CP_UTF8
> >
> > at the top of scipt  , but no luck
> >
> > --
> > visw
> >
> ---------------------------------------------------------------------
> > Posted via Jive Forums
> >
> http://forums.openqa.org/thread.jspa?threadID=3253&messageID=8917#8917
> > _______________________________________________
> > Wtr-general mailing list
> > [email protected]
> > http://rubyforge.org/mailman/listinfo/wtr-general
> >
>
>
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>
>
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to