That looks sort of (but not quite) like UTF-8
encoding, which includes the ASCII character set.
Although normally you'd see something like "\u00d9"
("\u" + a code). So it's some sort of unicode variant.
For anything that doesn't fit into the ASCII range
you'll see some sort of encoded value like that.

Does the web site that you are testing use .properties
files or some other method of externalizing the
strings for localization? If so, you could probably
use those strings when doing the asserts and not worry
about substitution. The strings in those files would
probably look something like this:

STRING = Geben Sie Ihre Telefonnummer (tags\374ber
 



--- Paul Rogers <[EMAIL PROTECTED]> wrote:

> 
> my web page contains "Geben Sie Ihre Telefonnummer
> (tags�ber)"  
> In case it doesnt show correctly, near the end is a
> u with 2 dots above it. Im sure there is a correct
> term, but Im no linguist.
> 
> If I do:
> ie.text
> I get
> 
> => "Geben Sie Ihre Telefonnummer (tags\374ber"
> 
> Can any one suggest a work around, solution etc? Im
> sure there are other letters that will do the same
> thing.
> 
> Im thinking along the lines of
> class IE
> def text_with_no_escape_sequence
>     retun self.text.gsub("\374" , "�")
> end
> 
> and do the same for other chars. Im sure there is a
> better way though.
> 
> 
> Paul
> 
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to