Hi, I think that there may be a bug in Watir with respect to how it handles character encodings. I have a fairly simple test and a test data file (in yml format). In my data file, I have a Shift_jis encoded character sequence (I don't read japanese, so I have no idea what it says!). I set my encoding in the script using the jcode library.
When printing to the console (cmd on XP2), I get the correct string of characters, however when I use the text_field.set method, the characters enetered in the text field in IE are mangeled, they look like UTf8 or perhaps CP932, again I'm not a real expert on this. I've had a fiddle with Iconv to see if I can reproduce the same encoding on the command line, but I can't reproduce (I can mangle the characters, but not the same output as I'm experiencing in IE). I can manually copy/paste the data into IE and it's perfectly fine, so it's definitely something to do with how watir is handling the data I'm passing in to text_field.set Thanks Kev _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
