Commit 4c38dc23 authored by Bernd Gehrmann's avatar Bernd Gehrmann
Browse files

Load .ui, .docbook and .xml files with utf8

encoding

svn path=/trunk/kdesdk/cervisia/; revision=163102
parent 032083ed
......@@ -177,9 +177,12 @@ QString tempFileName(const QString &suffix)
QTextCodec *detectCodec(const QString &fileName)
{
QFile f(fileName);
// TODO, the following conditions are a rough hack
if (fileName.endsWith(".ui") || fileName.endsWith(".docbook")
|| fileName.endsWith(".xml"))
return QTextCodec::codecForName("utf8");
// TODO
return QTextCodec::codecForLocale();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment