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 <[email protected]> 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 <[email protected]> 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 > >>> still not working. > >>> BTW, where can I upload an image to show this. > > >>> On 11月11日, 上午6时21分, Charley Baker <[email protected]> wrote: > > >>>> Done. I was waiting on some people, never heard back. > > >>>> -c > >>>> 2009/11/10 Bret Pettichord <[email protected]> > > >>>>> Where are we with the1.6.5release? > > >>>>> Bret > > >>>>> Charley Baker wrote: > > >>>>>> There is a change in this version for UTF-8: > > >>>>>http://github.com/bret/watir/commit/466332be758a43c6045374c6c6ca03827... > > >>>>>> I'm honestly not sure if that's throwing you off or not. Let me know, > >>>>>> I was hoping to release today. > > >>>>>> -c > > >>>>>> 2009/11/5 jnxgn <[email protected] <mailto:[email protected]>> > > >>>>>> In IE, maybe it is not the problem of watir itself, but something > >>>>>> else. > > >>>>>> On 11月6日, 上午1时59分, Charley Baker <[email protected] > >>>>>> <mailto:[email protected]>> wrote: > >>>>>> > Are you still seeing this problem? Is that happening in Firefox > >>>>>> or IE? > > >>>>>> > -c > > >>>>>> > On Tue, Nov 3, 2009 at 12:34 AM, jnxgn <[email protected] > >>>>>> <mailto:[email protected]>> wrote: > > >>>>>> > > After I installed the gems according to the instructions, the > >>>>>> Chinese > >>>>>> > > characters getting from and posting to web pages are messed up. > > >>>>>> > > On Oct 23, 5:14 am, Charley Baker <[email protected] > >>>>>> <mailto:[email protected]>> wrote: > >>>>>> > > > Hi all, > > >>>>>> > > > We have a new version of Watir for testing,1.6.5.rc2. > >>>>>> > > > the release is here with instructions: > >>>>>> > >http://wiki.openqa.org/display/WTR/Development+Builds > > >>>>>> > > > If you have a chance to take a look at it, let us know. > >>>>>> There have been > >>>>>> > > a > >>>>>> > > > few changes since the last release candidate, most of those > >>>>>> are bug fixes > >>>>>> > > > for installation and additional fixes for tables, you can > >>>>>> view the git > >>>>>> > > > history > >>>>>> > >>>>>> here:http://github.com/bret/watir/commits/master/I'll<http://github.com/bret/watir/commits/master/I%27ll> > >>>>>> <http://github.com/bret/watir/commits/master/I%27ll> be > >>>>>> > > updating > >>>>>> > > > the release notes for the recent changes before the final > >>>>>> release. Please > >>>>>> > > > let us know what you think and any troubles you might have. > > >>>>>> > > > Cheers, > > >>>>>> > > > Charley > > >>>>> -- > >>>>> Bret Pettichord > >>>>> Lead Developer, Watir,www.watir.com > >>>>> Blog,www.io.com/~wazmo/blog<http://www.io.com/%7Ewazmo/blog> > >>>>> Twitter,www.twitter.com/bpettichord-隐藏被引用文字 - > > >>>> - 显示引用的文字 - > > >> -- > >> Bret Pettichord > >> Lead Developer, Watir,www.watir.com > >> Blog,www.io.com/~wazmo/blog > >> Twitter,www.twitter.com/bpettichord-隐藏被引用文字 - > > >> - 显示引用的文字 -- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to [email protected] Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---
