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