Highlighted
New Member.
1900 views

Unable to convert (Encode) Arabic (non english) values in web(HTTP\HTML) protocol loadrunner

Arabic value are passing like corrupted below format in loadrunner edittor

Loadrunner value: رÙ\x81عه مرزÙ\x88Ù‚ محمد ال مشعيwPY9zuXi

But same value passing in loadrunner screenshot in the below format: $#1575;$#1604;$#1582;$#1575;$#1605;$#1587;$#1577;

How to encode or decode above screenshot value and pass it to in loadrunner.

Tried in below convert web functions but not able to convert in correct format

web_convert_param("Arabicvalue", "SourceEncoding=HTML", "TargetEncoding=URL", LAST);

web_convert_param("Arabicvalue", "SourceEncoding=HTML", "TargetEncoding=PLAIN", LAST);

Requesting your help to solve this issue.

Regards,

ManojThota

0 Likes
6 Replies
Highlighted
Frequent Contributor.
Frequent Contributor.

Re: Unable to convert (Encode) Arabic (non english) values in web(HTTP\HTML) protocol loadrunner

Hi,

First could you check if the "Current language for non-Unicode program" has been set. You could find it in Windows control panel -> Clock, Language, and Region -> Region and Language -> Adminstrative tab.

Second, if your web site is UTF-8, please enable "Support charset UTF-8" in LR's Recording Options (in HTTP Properties -> Advanced), and then record it again.

Regards,

Ellie

Highlighted
New Member.

Re: Unable to convert (Encode) Arabic (non english) values in web(HTTP\HTML) protocol loadrunner

Hi Ellie,

Those 2 options suggested by you is already enabled in windows control panel and loadrunner, but still i am getting the same issue.

Regards,

ManojThota

0 Likes
Highlighted
Frequent Contributor.
Frequent Contributor.

Re: Unable to convert (Encode) Arabic (non english) values in web(HTTP\HTML) protocol loadrunner

Hi,

I am not sure how you use the non English values in your script...

In current LR, the script itself is ANSI, you could use lr_convert_string_encoding to do the convertion.

Here is an example:

Arabic.png

 

 

 

 

 

The first lr_convert_string_encoding converts Arabic to UTF8 , the second one does the opposite.

In the log the UTF8 encoded parameter value cannot be displayed correctly, that is ok. Its value is correct.

Arabic2.png

Highlighted
New Member.

Re: Unable to convert (Encode) Arabic (non english) values in web(HTTP\HTML) protocol loadrunner

Here am facing one more issue please have a look in to this issue

Am working in oracle apps application with Load runner 12.50 Version (Web\HTTP|HTML) protocol. Our application contains Arabic values are passing like dynamic values.

We need to correlate the Arabic values and send it to server but here i am facing some issues.

Snapshot of Arabic value is going in this format: الاحساء But we are sending the Arabic value in this URL Encode format: %26%231575%3B%26%231604%3B%26%231575%3B%26%231581%3B%26%231587%3B%26%231575%3B%26%231569%3B and our request is failing.

Actually we need to send the Arabic value in RAW URL Encode format: %D8%A7%D9%84%D8%A7%D8%AD%D8%B3%D8%A7%D8%A1

In load runner or c language do we have any functions to convert URL encode format to RAW URL Encode format, Requesting your help to proceed further.

Regards,

Manoj Thota

 

0 Likes
Highlighted
New Member.

Re: Unable to convert (Encode) Arabic (non english) values in web(HTTP\HTML) protocol loadrunner

Hi manoj, I am working on an Arabic legal translator website and getting stuck with this issue.

Have you find the solution for this. If you can please share the solution this would be a big help for me.

0 Likes
Highlighted
Super Contributor.
Super Contributor.

Re: Unable to convert (Encode) Arabic (non english) values in web(HTTP\HTML) protocol loadrunner

Hello,

Sorry for the late response,

Could you please change System locale settings in your machine, please find below steps to change

Step 1: Click control panel and "Region and language settings"

Step 2: After clicking the "Region and language settings" navigate to "Administrative tab" and change the system locale from English Us to Arabic (Saudi Arabia) and restart the machine.

Now you are able to view the arabic values in application as well as in system.

If this approach is working fine, please give me the kudo and accept the solution 🙂 

Regards,

Manoj Thota

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.