[Uml-devel] Wrong encoding in XMI file

Bernhard Walle bernhard.walle at gmx.de
Wed Jan 7 13:09:00 UTC 2004


Package: umbrello
Version: 1.1.1 (KDE 3.1.4) (SuSE)
Severity: normal
Compiler: gcc version 3.3.1 (SuSE Linux)
OS: Linux 2.6.0-test3 i686 (SuSE)

The encoding of the generated XMI file is wrong. It is ISO-8859-1 but the XML header is utf-8. 

I don't know the sourcecode but if you use Qt's QTextStream, just use
stream.setEncoding(QTextStream::UnicodeUTF8);

Changing the declaration is not a very good idea since XML parser must parse UTF-8 but can parse other encodings.




More information about the umbrello-devel mailing list