m using ruby 1.8.6 and watir 1.5.1.1230 for my testing. I m trying to
enter some japanese characters into the internet explorer textbox
using watir. However I getting a series of boxed characters instead. I
tried writing the japanese characters into a file using ruby and it
works fine. Please find below the snip which explains the problem.
Please help me resolve this problem. I m stuck with this for the past
two days.

require'paths.rb'
require'watir'
require "win32ole"
WIN32OLE.codepage = WIN32OLE::CP_UTF8
$KCODE = 'utf8'
require 'jcode'

strProxyAddress = '管理者'
puts strProxyAddress
open("C:\\test.txt","w").write(strProxyAddress)
i=Watir::IE.attach(:title,/google/i)
i.text_field(:index,2).set(strProxyAddress)

-- 
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]

Reply via email to