ASCII to UTF-8



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


.



Relevant Pages

  • Re: ASCII to UTF-8
    ... > I received a XML file with header ... > coded in ASCII. ... > the browser accepts the file and displays it correctly. ... practical to transform a string in place by inserting a few characters. ...
    (comp.lang.pascal.delphi.misc)
  • Re: can a browser read unicode?
    ... from servlet to the browser and the browser can ... There are various ways to put such a header into your response, but this is probably the easiest: ... You then ensure that you actually do encode the text in UTF-8, either by getting and using the response's Writer, or by wrapping the response's OutputStream in an OutputStreamWriter configured to use UTF-8. ...
    (comp.lang.java.programmer)
  • Re: Enhanced Unicode support for "Go" tools
    ... maybe Rene and Randy to note, perhaps - is an "ASCII compatible" ... version of UNICODE...in fact, for strict 7-bit ASCII, UTF-8 and ... characters so, being on Windows, that opinion makes great sense ... where the majority of the supported languages ...
    (alt.lang.asm)
  • Re: Format of string output of a socket server
    ... ASCII is the same no matter what byte encoding is used. ... By definition any ASCII string is in UTF-8 encoding. ... The client program can then convert to Unicode or whatever they see fit? ... I am writing a socket server to deliver telephony events to clients on ...
    (microsoft.public.win32.programmer.networks)
  • Re: Wasteful internationalization
    ... Non-MIME messages are assumed to be in ASCII, ... Larry keep posting with his old newsreader. ... and they use UTF-8 instead of UCS-2 ... I don't have Flash installed (because I can't stand web pages ...
    (comp.lang.ada)