summaryrefslogtreecommitdiff
path: root/libopie/tododb.cpp
authorzecke <zecke>2002-04-25 16:11:10 (UTC)
committer zecke <zecke>2002-04-25 16:11:10 (UTC)
commite944a214e0efeccd2eb9cc479ad8893427c6b81d (patch) (side-by-side diff)
tree263f754a34d23738dac6c3dea9dbcb0ce8b6bb3e /libopie/tododb.cpp
parent48dbc8fb69a5d19f466ea757207e42c3861b4dee (diff)
downloadopie-e944a214e0efeccd2eb9cc479ad8893427c6b81d.zip
opie-e944a214e0efeccd2eb9cc479ad8893427c6b81d.tar.gz
opie-e944a214e0efeccd2eb9cc479ad8893427c6b81d.tar.bz2
This should fix the Umlaut problem
Diffstat (limited to 'libopie/tododb.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/tododb.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libopie/tododb.cpp b/libopie/tododb.cpp
index c486723..33fa177 100644
--- a/libopie/tododb.cpp
+++ b/libopie/tododb.cpp
@@ -42,12 +42,13 @@ public:
task->setAttributes( map );
tasks->appendChild(task);
}
QFile file( name);
if( file.open(IO_WriteOnly ) ){
QTextStream stream(&file );
+ stream.setEncoding( QTextStream::UnicodeUTF8 );
stream << "<!DOCTYPE Tasks>" << endl;
tasks->save(stream );
delete tasks;
stream << "</Tasks>" << endl;
file.close();
return true;