Watir tips and tricks
A collection of useful tips and tricks for WATIR and RUBY.
Home
Installation
Errors
Wednesday, May 4, 2011
Checking for UTF-8 characters / texts
If you need to check for texts containing UTF-8 characters using Watir. You need to include following lines to your test script:
require "win32ole"
WIN32OLE.codepage = WIN32OLE::CP_UTF8
... and your script file should be
UTF-8 encoded without BOM
.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment