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 characters

Former Member
0 Likes
602

Hi all!

First, sorry for my English language which is very perfectible

Does anybody know if existing a method for return the unicode value of a character?

for exemple,

I want the value &#x641 for the arabian character 'fa'.

Thank you in advance,

Message was edited by: corbier 32

Message was edited by: corbier 32

Message was edited by: corbier 32

4 REPLIES 4
Read only

christian_wohlfahrt
Active Contributor
0 Likes
544

Hi,

have a look, if the statement

CONVERT TEXT text INTO SORTABLE CODE hex. 

is matching your requirement. You will then have a hex-code in variable 'hex', but not in the character form '&#x..'.

Regards,

Christian

Read only

sridhar_k1
Active Contributor
0 Likes
544

Welcome to SDN.

Methods:

CL_ABAP_CONV_OUT_CE=>UCCP Returns the Hexadecimal Unicode Value for a Character

CL_ABAP_CONV_OUT_CE=>UCCPI Returns the Unicode Value for a Character

Regards

Sridhar

Read only

Former Member
0 Likes
544

ok

Your answers are very helpful

thanks all