diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-11-28 20:38:57 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-11-28 20:38:57 (GMT) |
commit | f3e7209fed9703e8be668753d1083ba335121a6e (patch) | |
tree | 229ba1f0bd2e721f4cc81307b63d8c79051d1bc4 /src/xmlgen.cpp | |
parent | e952dab58265a6f21867e51f72d7d81ffe39e082 (diff) | |
download | Doxygen-f3e7209fed9703e8be668753d1083ba335121a6e.zip Doxygen-f3e7209fed9703e8be668753d1083ba335121a6e.tar.gz Doxygen-f3e7209fed9703e8be668753d1083ba335121a6e.tar.bz2 |
Release-1.3-rc1-20021128
Diffstat (limited to 'src/xmlgen.cpp')
-rw-r--r-- | src/xmlgen.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/xmlgen.cpp b/src/xmlgen.cpp index b148133..070ccc2 100644 --- a/src/xmlgen.cpp +++ b/src/xmlgen.cpp @@ -34,6 +34,7 @@ #include "version.h" #include "xmldocvisitor.h" #include "docparser.h" +#include "language.h" #include <qdir.h> #include <qfile.h> @@ -56,7 +57,8 @@ static void writeXMLHeader(QTextStream &t) { QCString dtdName = Config_getString("XML_DTD"); QCString schemaName = Config_getString("XML_SCHEMA"); - t << "<?xml version='1.0' encoding='ISO-8859-1' standalone='"; + t << "<?xml version='1.0' encoding='" << theTranslator->idLanguageCharset() + << "' standalone='"; if (dtdName.isEmpty() && schemaName.isEmpty()) t << "yes"; else t << "no"; t << "'?>" << endl; if (!dtdName.isEmpty()) @@ -789,6 +791,7 @@ static void generateXMLForClass(ClassDef *cd,QTextStream &ti) return; } QTextStream t(&f); + t.setEncoding(QTextStream::Latin1); writeXMLHeader(t); t << " <compounddef id=\"" @@ -975,6 +978,7 @@ static void generateXMLForNamespace(NamespaceDef *nd,QTextStream &ti) return; } QTextStream t(&f); + t.setEncoding(QTextStream::Latin1); writeXMLHeader(t); t << " <compounddef id=\"" @@ -1065,6 +1069,7 @@ static void generateXMLForFile(FileDef *fd,QTextStream &ti) return; } QTextStream t(&f); + t.setEncoding(QTextStream::Latin1); writeXMLHeader(t); t << " <compounddef id=\"" @@ -1198,6 +1203,7 @@ static void generateXMLForGroup(GroupDef *gd,QTextStream &ti) } QTextStream t(&f); + t.setEncoding(QTextStream::Latin1); writeXMLHeader(t); t << " <compounddef id=\"" << gd->getOutputFileBase() << "\" kind=\"group\">" << endl; @@ -1312,6 +1318,7 @@ static void generateXMLForPage(PageInfo *pi,QTextStream &ti) } QTextStream t(&f); + t.setEncoding(QTextStream::Latin1); writeXMLHeader(t); t << " <compounddef id=\"" << pageName; t << "\" kind=\"page\">" << endl; @@ -1393,6 +1400,7 @@ void generateXML() return; } QTextStream t(&f); + t.setEncoding(QTextStream::Latin1); writeXMLHeader(t); ClassSDict::Iterator cli(Doxygen::classSDict); ClassDef *cd; |