Version: 3.4.1 (using KDE KDE 3.4.2) Installed from: Gentoo Packages Compiler: gcc version 3.3.5-20050130 CFLAGS/CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" OS: Linux As I run a almost completely utf-8-based system, KTextEditor in Quanta thinks that everything is utf-8, and by default opens all files as such, but as I frequently have to deal with files in other encodings, it can become quite frustrating, because if you open a ISO-8859-1 HTML-file and save it as UTF-8, all non-ASCII chars are warbled into nonsense, with no warning what so ever. I'm not asking that there should be a complicated checking-algorithm, but when a HTML-file starts like this: <?xml version="1.0" encoding="iso-8859-15"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="da"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" /> there should be ample evidence as to which encoding to load this in... So it would be nice if someone was to either show me a way to define which charset to load files as into the files ( abit like the # -*- coding: utf-8 -*- python uses), or implement a simple checker that checks if there's a charset-definition in the file, and in case there is, loads the file as per the definition.
There are several solutions for this problem: 1. Quanta has a default encoding but you can specify another on in the file open dialog. 2. You can change the encoding after you opened the file with Tools|Encoding menu entry. 3. A project can have a different default encoding. 4. You can use Kate variables to inform the Kate part which encoding is to be used. See Kate's handbook about details. But I agree Quanta could be a bit smarter here.
On Sunday 21 August 2005 19:49, Jens Herden wrote: > But I agree Quanta could be a bit smarter here. How? I think Kate should be more smarter...
#2: So the editor in Quanta is actually Kate? In that case, the product of this bug should be changed :)
Yes, it is the same editor as in Kate. It is called "katepart".
So, you leave it to us to find the *wish* this duplicates?
related to bug #55355 and #116777
I did not know the Kate wishes or bugs, but it was clear that this was belongs to Kate, so I just reassigned. You can take as a report from somebody who did not verify for existing reports before filing a new one. (Thanks Dominik for doing it though.)
*** This bug has been marked as a duplicate of bug 55355 ***