Watir support Chinese?

When using Watir, feel is good, but now there is a problem, it seems that it does not support Chinese, such as I enter the ie.button (: ID, "Chinese search"), running without a reaction? Need not to need to download any Chinese plug-ins, this plug-in? Thank you!

Started by Matilda at November 14, 2016 - 2:27 PM

Support.

Posted by Frederic at November 29, 2016 - 2:34 PM

Okay, thank you.

Posted by Matilda at December 03, 2016 - 3:14 PM

This simple ah, the search on the net to get the answer.

Posted by Bruce at December 14, 2016 - 3:59 PM

Support Chinese, please refer to the following website

Posted by Brandon at December 19, 2016 - 4:19 PM

This is also called support Chinese? If I want to get link text text to add a method, there are many kinds of case used in Chinese I have to different places and many kinds of method?

Posted by Chad at December 30, 2016 - 4:26 PM

Add the following code:
require "jcode"
require "iconv"

class String
    def to_utf8
        begin
            Iconv.conv('UTF-8', '', self) 
        rescue Exception
            self
        end
    end 

    def to_ascii
        begin
            Iconv.conv('','UTF-8',self)
        rescue Exception
            self
        end
    end 
end

By the time the Chinese string conversion under it, e.g.:
ie.button(:id, "Chinese search ".to_utf8)

Posted by Rod at January 13, 2017 - 5:14 PM