Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Unicode XTSRING to String Question?

Former Member
0 Likes
559

I have an xstring which holds the converted (to non-unicode utf-8) hexidecimal contents of a string. I have to pass out the string with the new (non-unicode, utf-8) values, not the unicode values it holds.

In other words:

v_field = '123' hex = 3100,3200,3300 (Unicode)

converted_to_utf-8_buffer hex = 31,32,33

So, I need the value to stay 1,2,3, but I need its hex values changed to converted_to_utf-8_buffer hex = 31,32,33.

Due to issues we are having passing this data(html) out to a Web Application since Unicode upgrade, I want to pass the

this data(html) with the same values and hex values as it was before unicode Upgrade?

Is this possible? How?

Thank-You

3 REPLIES 3
Read only

Former Member
0 Likes
518

Hi TMM,

I think you can use FM 'HR_RU_CONVERT_HEX_TO_STRING ' to convert hex data to string.

Read only

0 Likes
518

Hello Prince,

I have tried that. The result for the value (1,2,3) in the string is correct, but the hex goes back to (2 byte) Unicode, 3100, 3200, 3300.

My goal is to have the hex (of the character string) at non-Unicode when passing out (1 byte), 31,32,33.

Thanks.

Read only

0 Likes
518

Hello TMM,

did you get a solution for your problem? Actually I meet the same one...

Thanks for your feedback,

valérie