3 weeks ago - last edited 3 weeks ago
Hi, experts.
How to convert xml to table, using xml transformation, at utf-8 format?
i'm calling an xml transformation, but cyrillic values are not readable, although it's readable at xml_final.
CALL TRANSFORMATION (lv_trans_name)
SOURCE XML xml_final
RESULT root = it_tab.
3 weeks ago
CALL TRANSFORMATION considers that a SOURCE XML variable of type XSTRING (bytes) are characters encoded in UTF-8.
So, I guess your ultimate question is "how to encode characters from STRING to XSTRING in UTF-8"? (question unrelated to CALL TRANSFORMATION)
3 weeks ago
Hi Shiz,
It may not help but you could try populating the itab with data and then converting it to XML. You could then look at the resulting XML for any "features" you may have overlooked. 😜
Cheers
Graham Robbo
2 weeks ago - last edited 2 weeks ago
How is the original XML encoded?
<?xml version="1.0" encoding="UTF-8"?>
What is the current code page of AS ABAP?
2 weeks ago
There is no encoding, original is russian, solved with converting source xml to xstring