Hi There, I added the following lines to top of my rb file that's got the non-english characters in it:
require "encoding" Encoding.default_internal='UTF-8' Encoding.default_external='UTF-8' Still having problems though. I noticed that the encoding.rb file has most of its contents commented out. Is this normal? Cheers Aidy On Friday, 9 November 2012 15:23:59 UTC, Adrian Killens wrote: > > That didn't work, in this instance I need to grab via the non-english tags > as I'm doing some testing around translations. > > On Friday, 9 November 2012 14:17:19 UTC, Joe Fl wrote: >> >> Hi Aidy, >> >> Are there any other elements you can use for this link? >> >> Have you tried this? >> browser.link(:id,/Tovabb/).click >> >> Regards, >> Joe >> >> On Fri, Nov 9, 2012 at 7: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]
