[Wtr-general] Watir utf-8 support ( japanese support )

Charley Baker charley.baker at gmail.com
Thu Aug 3 17:29:55 EDT 2006


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 <christopher.mcmahon at gmail.com> 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 <charley.baker at gmail.com> 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 <forum-watir-users at openqa.org > 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
> > > Wtr-general at rubyforge.org
> > > http://rubyforge.org/mailman/listinfo/wtr-general
> > >
> >
> >
> > _______________________________________________
> > Wtr-general mailing list
> > Wtr-general at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/wtr-general
> >
> >
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060803/acd30b01/attachment.html 


More information about the Wtr-general mailing list