Bug 67369 - german umlauts in data file path are not saved correctly
Summary: german umlauts in data file path are not saved correctly
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.x
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-06 01:45 UTC by I Jandt
Modified: 2003-11-28 08:52 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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