Bug 67369

Summary: german umlauts in data file path are not saved correctly
Product: [Applications] kst Reporter: I Jandt <i.jandt>
Component: generalAssignee: kst
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.x   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description I Jandt 2003-11-06 01:45:41 UTC
Version:           0.93-devel (using KDE KDE 3.1.4)
Installed from:    Compiled From Sources
Compiler:          gcc 3.2 
OS:          Linux

If the data file path of a vector contains umlauts, and you save your kst-file and open it again, the umlauts are replaced by '?' in the vector property dialog; so the files are not found any more. You can choose "Change data file" to correct it again, but it is somewhat annoying.
Comment 1 George Staikos 2003-11-28 08:52:33 UTC
Subject: kdeextragear-2/kst

CVS commit by staikos: 

Processing directive in Kst files so the parser knows it's encoded with UTF-8

CCMAIL: 67369-done@bugs.kde.org


  M +2 -0      TODO   1.17
  M +1 -0      kst/kstdoc.cpp   1.45


--- kdeextragear-2/kst/TODO  #1.16:1.17
@@ -23,4 +23,6 @@
 Move the graphing engine into a separate library
 
+Write files out with QDom instead of a text stream
+
 ---------------------------
 Cleanup:

--- kdeextragear-2/kst/kst/kstdoc.cpp  #1.44:1.45
@@ -264,4 +264,5 @@ bool KstDoc::saveDocument(const QString 
   QTextStream ts(&f);
 
+  ts << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" << endl;
   ts << "<kstdoc>" << endl;
   // save window geometry for this kst file