Re: ASCII to UTF-8



"Tom de Neef" <tdeneef@xxxxxxxx> schreef in bericht
news:438209cc$0$11066$e4fe514c@xxxxxxxxxxxxxxxxx
>I received a XML file with header
> <?xml version="1.0" encoding="UTF-8"?>
>
> The browser can't read the file because there are diacritics in it, coded
> in ASCII.
> When I change the header to
> <?xml version="1.0" encoding="ascii"?>
> the browser accepts the file and displays it correctly.
>
> But... the file is to imported into Borland's Translation Manager and that
> one only accepts UTF-8, so I can't change the encoding string.
>
> Is there an easy way in which I could convert the file from ASCII to
> UTF-8?
> Thanks for suggestions.
> Tom
>

Thank you both. I worked it out with the ANSItoUTF8 and UTF8toANSI functions
and Maarten's explanation. Such quick and adequate help is always a stimulus
to look at the problems posted by others and see if I can be of assistance.
Tom


.