encoding title elements

Ranorex Spy, Recorder, and Studio.
S_Gavrikov
Posts: 3
Joined: Mon Sep 26, 2011 12:54 pm

encoding title elements

Post by S_Gavrikov » Mon Sep 26, 2011 1:09 pm

Dear, tell me.
I've installed the Russian version of Windows 7 and Ranorex 3.0.
After recording the script tool Ranorex Studio when trying to compile the script get the error message:

"Test2.Test2Repository" не содержит определение для "ButtonрХУЛ". Не удалось найти метод расширения "ButtonрХУЛ", принимающий первый аргумент типа "Test2.Test2Repository" (пропущено использование директивы или ссылка на сборку?) (CS1061) - C:\Users\Стас\Documents\Ranorex\RanorexStudio Projects\Test2\Test2\Recording1.cs:80,115

In reality, the code looks like this:

Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ButtonПуск.ButtonПуск' at 34;39.", repo.ButtonПуск.ButtonПускInfo, new RecordItemIndex(0));
repo.ButtonПуск.ButtonПуск.Click("34;39");

How and where to prescribe explicitly the encoding to compile these errors from appearing?
I apologize for my English, as translated gogle.

S_Gavrikov
Posts: 3
Joined: Mon Sep 26, 2011 12:54 pm

Re: encoding title elements

Post by S_Gavrikov » Tue Sep 27, 2011 8:33 am

Решил проблему. Правится конфиг "repository.xft" Меняется значение "UTF-8" на "Win-1251".

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: encoding title elements

Post by Support Team » Tue Sep 27, 2011 1:06 pm

Hi,
S_Gavrikov wrote:How and where to prescribe explicitly the encoding to compile these errors from appearing?
I apologize for my English, as translated gogle.
Please check the Ranorex Studio settings if the "File Enconding" is set to UTF-8. Normally is set to UTF-8 by default and UTF-8 shouldn't have any problems with Cyrillic.
To check this setting please open the Tools->Options Dialog. Then go to the Text Editor-> General part and check the encoding.
If it is not set to UTF-8 then please change it to this value and try it again.

Regards,
Peter
Ranorex Team
.
Image