Klaus, I have these two functions in my library for this:

function utf8encode pString
      return unidecode(uniencode(pString),"UTF8")
end utf8encode

-----

function utf8decode pString
      return unidecode(uniencode(pString,"UTF8"))
end utf8decode

-----

Best,

Mark

On 30 Jun 2009, at 11:00, [email protected] wrote:

Hi freinds,

I need a little help.

I am generating a XML file and need to save it to disk in UTF8 format:
<?xml version="1.0" encoding="utf-8"?>
...

Since uniencode/unidecode etc. is still a mistery to me I need a little advice
on how to convert my variable holding the complete xml text to UTF8
before writing to disk (binfile! of course).

The docs are not much help here...

Thanks a lot in advance!


Best

Klaus

--
Klaus Major
http://www.major-k.de
[email protected]




_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to