Note, I haven't tested this under watir and speaking with regard to general
string handling under ruby 1.9.

Try to update the encoding to something that supports DBCS, such as UTF-8.
 This can be done either at the global level by:

Encoding.default_internal='UTF-8'
Encoding.default_external='UTF-8'

Or you can perform the operation on the string itself:

browser.link(:id, 'Tovább'.encode('UTF-8')).click


On Fri, Nov 9, 2012 at 4:49 AM, Adrian Killens <[email protected]>wrote:

> Hi There,
> Does anyone know how I can click things in non-english languages that have
> non-english characters identifying them?
>
> E.g.
> browser.link(:id, 'Tovább').click
>
> I get the following trying to click these links:
>
> invalid multibyte char (US-ASCII) (SyntaxError)
> invalid multibyte char (US-ASCII)
>
> Cheers
> Aidy
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> [email protected]
> http://groups.google.com/group/watir-general
> [email protected]
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to