Skip to Content
0
Former Member
Dec 01, 2003 at 04:32 PM

XML encoding

647 Views

Hi.

I'm using iXML library to load and parse XML document in ABAP. All works just fine except one thing:

When I'm trying to get_value( ) from XML document node that contains cyrillic symbols (encoding - 'win-1251') I receive instead of cyrllic symbols symbols '#' (23) in my string variable.

The code:

DATA: pNode TYPE REF TO if_ixml_node,

sValue TYPE string.

...

sValue = pNode->get_value( ). "

...

And sValue contains '### ##### ####' or somthing like that.

For all other symbols (not cyrillic) all works exellent. But I need the cyrillic ones....

So, the question: What the right technique to change encoding for loaded XML document. Please, show the example of something like pDocument->set_encoding(...)...

Thank you for your time.

Kind regards, Kissel Konstantin.