export to text file in UTF8 format?

Mark Smith lists at futilism.com
Tue Jun 30 06:06:48 EDT 2009


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, klaus at major.on-rev.com 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
> klaus at major.on-rev.com
>
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list