Strange string in XML element

Hello all.
Probably the answer is known, but not for me :slight_smile:
I have a XML response from the external source:

<?xml version=\"1.0\"?>
<response>
<reqn>118962105580</reqn>
<retval>-5</retval>
<retdesc>&#1053;&#1077;&#1074;&#1077;&#1088;&#1085;&#1072;&#1103;
&#1087;&#1086;&#1076;&#1087;&#1080;&#1089;&#1100; step=7</retdesc>
</response>

Did some one know what the hell is in <retdesc> element and how to convert
it to normal text?

ยทยทยท

--

- Best regards, Nikolay Pavlov. <<<-----------------------------------

Nikolay Pavlov wrote:

Hello all.
Probably the answer is known, but not for me :slight_smile:
I have a XML response from the external source:

<?xml version=\"1.0\"?>
<response>
<reqn>118962105580</reqn>
<retval>-5</retval>
<retdesc>&#1053;&#1077;&#1074;&#1077;&#1088;&#1085;&#1072;&#1103; &#1087;&#1086;&#1076;&#1087;&#1080;&#1089;&#1100; step=7</retdesc> </response>

Did some one know what the hell is in <retdesc> element and how to convert it to normal text?

it's string of html encoded characters -> ะะตะฒะตั€ะฝะฐั > ะฟะพะดะฟะธััŒ

Did some one know what the hell is in <retdesc> element and how to convert
it to normal text?

Some kind of description containing HTML entities. I pasted the code
in a Blogger post and got back an expression in Russian (I think).

Greetings.
bc

Responding to my own question... The answer was $KCODE = "UTF-8" :slight_smile:

ยทยทยท

On Wednesday 12 September 2007 21:43:33 Nikolay Pavlov wrote:

Did some one know what the hell is in <retdesc> element and how to
convert it to normal text?

--

- Best regards, Nikolay Pavlov. <<<-----------------------------------