Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Illegal xml character

Former Member
0 Likes
1,639

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?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,107

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.

3 REPLIES 3
Read only

Former Member
0 Likes
1,107

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

Read only

Former Member
0 Likes
1,108

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.

Read only

0 Likes
1,107

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