Page 1 of 1

Reading special characters from a data file

Posted: Thu Jun 21, 2012 7:51 pm
by xrayspex
I have a test where I am clicking on a spantag that is identified by an "innertext" attribute.

In the Spy and in the repository, the Xpath looks like this:
.//span[@innertext='Vásárlás']

In my data file, which supplies the innertext for which the test should check I see this:
Vásárlás

I see this when I cut and paste the tag into the text editor in Ranorex studio:
.//span[@innertext='Vásárlás']

I see this in the report after the test fails:
No element found for path '<extra path info deleted here>/.//span[@innertext='V�s�rl�s']' within 10s.

How do I get Ranorex to recognize the special characters when it runs the test? The Spy sees it fine, and the repository has it correct as well. The data file is correct. Even the text editor can see it.

Thanks,
Lisa

Re: Reading special characters from a data file

Posted: Fri Jun 22, 2012 11:53 am
by Support Team
Hi,

please make sure to save your data file in UTF-8 encoding.
Then it should work as expected.

Regards,
Tobias
Ranorex Team