# load the correct version of win32ole # Use our modified win32ole library if RUBY_VERSION =~ /^1\.8/ $LOAD_PATH.unshift File.expand_path(File.join(File.dirname(__FILE__), '..', 'watir', 'win32ole')) else # loading win32ole from stdlib on 1.9 end require 'win32ole' WIN32OLE.codepage = WIN32OLE::CP_UTF8