Book a Demo

Author Topic: Special characters in XML  (Read 5123 times)

ja1234

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Special characters in XML
« on: October 06, 2015, 01:05:45 am »
When opening an XML file with Enterprise Architect, if the file has special characters,  the characters are not displayed. Instead, illegal characters are displayed, e.g. möglich

This does not happen if you type in the text or if you copy/paste the text.

Is there a workaround for this?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Special characters in XML
« Reply #1 on: October 06, 2015, 02:14:01 am »
Edit file file and replace Ö by Ö etc.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Special characters in XML
« Reply #2 on: October 06, 2015, 04:08:13 am »
You might be lucky if you change the codepage of the text file.

Although I think your source file is probably not valid XML. If I'm not mistaken you have to escape special characters like that in XML.

Geert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Special characters in XML
« Reply #3 on: October 06, 2015, 08:44:39 am »
Quote
If I'm not mistaken you have to escape special characters like that in XML.
You can directly include most characters depending on the character set declaration.

ja1234

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: Special characters in XML
« Reply #4 on: October 06, 2015, 06:19:01 pm »
Quote
You might be lucky if you change the codepage of the text file.

Although I think your source file is probably not valid XML. If I'm not mistaken you have to escape special characters like that in XML.

Geert

Good morning, thanks for everyone's feedback.

Not sure about the escaping of the characters, as there are only 5 characters http://www.w3.org/TR/xml11/#sec-predefined-ent which must be escaped when using XML documents.

Just to add to my previous report: the file is generated from a tool and it should be valid XML

Encoding:

Code: [Select]
<?xml version="1.0" encoding="UTF-8" ?>
I am following the steps from EA tutorial https://www.youtube.com/watch?v=T-guvzhWPnk to debug the XML.

Does EA have an XML library or related functions that I could used instead, maybe directly from a JScript file?

Thanks