"3Â Â Â Â Â Â Â Jubitz Travel
Center               Portland,OR"
Is there something in Watir that will get rid of the  character? Is
this related to UTF-8? Ultimately, I'm trying to isolate "Jubitz
Travel Center" from the text string. If someone can help, I would be
most grateful!
Thanks,
George
x = "3       Jubitz Travel Center              Â
Portland,OR"
x.gsub!(/Â/, "")
But you're probably looking to solve your root problem. Looks like a
UTF-8 vs. ISO-8859-1 issue. Do a search for "utf-8 Â as a space" on
your favorite search engine, and that should point you in the right
direction (hopefully).
Hope that helps.
orde
--
You received this message because you are subscribed to the Google Groups "Watir General" group.
To post to this group, send email to watir-...@googlegroups.com
Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to watir-genera...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/watir-general
x = "3       Jubitz Travel Center              Â
Portland,OR"
b = x.gsub(x[/(\d+)(\b[^0-9A-Za-z]{1,}\b)/], '') # gets rid of the
beginning number/funky chars
puts b.gsub(b[/(\b[^0-9A-Za-z]{1,}\b)(\w+)(,..)\Z/], '') # gets rid of
the second set of funky chars and city/state
One question, though.
Open IE, go to the website you're testing, right click, and select
Encoding. Is Unicode (UTF-8) selected?