Menu

#234 Encoding problem

Bugs
closed-fixed
nobody
None
5
2020-07-25
2020-07-25
Zane U. Ji
No

Reported by Thilo Lutz:

The problem is that XML Copy Editor (1.2.1.3 64bit on Windows 10 64bit) breaks files if they don’t have a line like
<?xml version="1.0" encoding="UTF-8"?>
in them. Even though those files may be UTF-8 and open perfectly in Notepad++, for example, XML Copy Editor breaks them and saves the changes. So editing CSS or other files produced by other programs that have not inserted the xml encoding element becomes really dangerous.

Steps to reproduce:
Create new XML document with XML Copy Editor.
Insert the line:
Test mit Ü und ⠿
which contains a german Umlaut Ü and a braille sign (6 dots).

Save as Test.css, close XML Copy Editor and reópen file. Everything is fine.
Remove the first line
<?xml version="1.0" encoding="UTF-8"?>
and re-save. Close XML Copy Editor and re-open file. The non-ASCII characters are broken. This happens during saving by XML Copy Editor since they are also broken in other editors.

Discussion

  • Zane U. Ji

    Zane U. Ji - 2020-07-25
    • status: open --> closed-fixed
     
  • Zane U. Ji

    Zane U. Ji - 2020-07-25

    Close in favor of [6eb5ad].

     

    Related

    Commit: [6eb5ad]


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.