Skip to Content
author's profile photo
Former Member

Illegal xml character

I have a xml and I need to write the character ‘ü’, but a message with the error ‘Illegal xml character’ is shown when I try open my file xml with the Microsoft Office Word.

I have tried to use the character special for xml/html, in my case I have used ‘ü’, but a message with the error ‘Undeclared Entity’ is shown in this case.

How I can solve it?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 12:50 PM

    Hi,

    I have the following line:

    <?xml version="1.0" encoding="UTF-8"?>

    I cannot change it. I have to use UTF-8.

    Is it possible to solve my problem without change the encoding parameter?

    Thanks.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      "ü" is a UTF-8 Character...

      How are you generating the file?

      Important is to save the file with the same byte format written in the <?xml version="1.0" encoding="UTF-8"?> line.

      If you use ABAP ensure that the encoding output is the right one.

      OPEN DATASET dsn IN TEXT MODE FOR OUTPUT ENCODING UTF-8

      If you use a editor ensure that you use the right encoding at the saving time.

      Regards,

      Gianpietro

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 12:33 PM

    Hi,

    i think the problem is the codepage of the XML document.

    I think the validation of the document fails because the 'ü' is not contained in the charset of the specified Codepage.

    The codepage specification ist done in the XML document line:

    <?xml version="1.0" encoding="<yourCharset"?>

    Regards,

    Gianpietro

    Add comment
    10|10000 characters needed characters exceeded