Re: [Wtr-general] unicode question

2006-10-25 Thread Christian Kreutzer
hi Charley, thanks for your reply. Your example works fine so far but it doesn't solve our problem. In our case the unicode chars are escaped like this \u00fc (should be a german ue umlaut) I can use this escaped chars in Python for example: print u\u00fc ΓΌ In Ruby i get the following result:

Re: [Wtr-general] unicode question

2006-10-24 Thread Christian Kreutzer
Hi again, i think i finally figured out what the real problem is. While reading UTF-8 encoded files (and passing those unicode strings to watir) works fine. those *.properties files that we have to use for input use the unicode-escape encoding (\u) for unicode chars. The files are encoded in

Re: [Wtr-general] unicode question

2006-10-20 Thread Christian Kreutzer
Thanks for your answer. i will check that out. a coworker of mine has tried some conversions with Iconv in the meantime, but we are not able to read a text file which was saved as utf-16 or utf-8 properly :-( XSD::Charset.encoding = 'UTF8' -- is there something to require in the script in order

Re: [Wtr-general] unicode question

2006-10-20 Thread Chris McMahon
XSD::Charset.encoding = 'UTF8' -- is there something to require in the script in order to get this working?You might possibly need to install net-http2 for this, but I thought it was part of Ruby http://dev.ctor.org/download/http-access-2_0_6.tar.gz

[Wtr-general] unicode question

2006-10-18 Thread Christian Kreutzer
Hi all, for a new project i have to verify the text/value of some html elements against values from a *.properties file. while reading the properties file and storing its content in a Hash is pretty easy, i have problems with some unicode chars (there are properties for several languages -

Re: [Wtr-general] unicode question

2006-10-18 Thread Zeljko Filipin
Put this at the begging of your script: require "win32ole" WIN32OLE.codepage = WIN32OLE::CP_UTF8 I do not know if this would help. For context in which it worked see http://zeljkofilipin.com/?p=21Zeljko-- http://zeljkofilipin.com/ ___ Wtr-general

Re: [Wtr-general] unicode question

2006-10-18 Thread Christian Kreutzer
hi zeljko, thanks for your answer. setting the ole codepage is meant to enable unicode for watir, right? i think my problem is more related to reading the properties file as normal text. im missing the step which converts those \u00fc strings to real unicode in ruby before having watir verify

Re: [Wtr-general] unicode question

2006-10-18 Thread Zeljko Filipin
This thread may be helpful: http://www.mail-archive.com/wtr-general@rubyforge.org/msg04610.htmlZeljko-- http://zeljkofilipin.com/ ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general