By saving .rb file as UTF-8, I can put the following code into
function, as per
http://wiki.openqa.org/display/WTR/Adding+UTF-8+characters+to+text+fields
require 'watir'
ENV["watir_browser"] = "ie"
browser = Watir::Browser.new
browser.goto "
www.google.cn"
browser.text_field(:name,'q').value = "考"
But when dealing with file read and write and screen output, Chinese
characters still cannot be handled properly.
On Nov 11, 11:30 pm, Bret Pettichord <
b...@pettichord.com> wrote:
> I believe that you have a problem, but we'll need more details if would
> you would like us to look into it.
>
> Bret
>
>
>
> jnxgn wrote:
> > I do not know how to open up a ticket there, so I would not try it.
>
> > Since1.6.5appears dont deal with chinese characters properly, I
> > uninstalled it by gem uninstall watir -v1.6.5, but the watir scripts
> > would not work. I removed ruby186-27 and reinstalled the ruby 186-27,
> > when I tried to gem install watir -v 1.6.2, the puter did not let me
> > go.
> > Then I installed watir1.6.5by gem install watir and gem install
> > watir -v 1.6.2, rename the folder of watir-1.6.5to another folder,
> > and rename the folder of watir-1.6.2 to watir-1.6.5. the watir scripts
> > worked fine.
>
> > It means that something is wrong within watir1.6.5
>
> > On 11月11日, 上午11时46分, Bret Pettichord <
b...@pettichord.com> wrote:
>
> >> Could you open up a ticket on Jira for this? You can attach images there.
http://jira.openqa.org/browse/WTR
>
> >> jnxgn wrote:
>
> >>> I installed the1.6.5after the release, chinese input and output
> >> - 显示引用的文字 -- Hide quoted text -
>
> - Show quoted text -