‎2008 Jul 04 10:31 AM
Hello ,
I have a requirement to convert xstring to Text . below mentioned is code i am using for conversion
TRY.
CALL method cl_abap_conv_in_ce=>create
EXPORTING
encoding = 'UTF-8'
input = p_detailtext ( xstring format)
receiving
conv = lv_convert.
CALL method lv_convert->read
IMPORTING
data = lv_string. ( text format )
CATCH cx_root.
lv_msg = 'Conversion error'.
ENDTRY.
this code workings absolutely fine for normal text . But if the text has special characters like £ , ¥ , then an exception is raised and I just get back a # instead .
Could anyone help in this regard . How do i get the right conversion for all characters.
‎2008 Jul 04 12:00 PM
Hi,
it seems that your input xstring is not in UTF-8 format.
You should check this.
Best regards,
Armin Hofius
‎2008 Jul 04 12:00 PM
Hi,
it seems that your input xstring is not in UTF-8 format.
You should check this.
Best regards,
Armin Hofius
‎2008 Jul 04 1:45 PM
I resolved the issue , as i came to close the query i saw ur reply. You are absolutely right the format xstring i was receving was not UTF-8 format. Now as the portal is handling it it comes thru' fine /
thanks