Convert UTF-8 to ISO 8859-1

Hi all!

Any clue about converting UTF 8 to ISO 8859-1 ?.

I have this XML file with special characters but when i post the information to the DB those special characters transforms and the post goes wrong.


i'm using this to encode the whole XML

fixedstring = unescape(encodeURIComponent(xml));

but this is a deprecated library.

Thanks a lot in advance!.

Perhaps the iconv node can help out. Example from another topic.