Bug 92288 - Does not set encoding to utf8 when open file from website
Summary: Does not set encoding to utf8 when open file from website
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: kwrite (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Christoph Cullmann
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-29 00:32 UTC by Anne-Marie Mahfouf
Modified: 2004-11-25 00:14 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anne-Marie Mahfouf 2004-10-29 00:32:24 UTC
Version:           4.4 (using KDE 3.3.89) (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc (GCC) 3.4.0 
OS:                Linux

Webpage is webcvs
http://webcvs.kde.org/cgi-bin/cvsweb.cgi/kde-i18n/hu/data/kdeedu/khangman/animals.kvtml
Click on download on this page then select
Open with 'KWrite'
The file gets opened in KWrite.
Using the View menu -> Set Encoding
change from auto to utf8.
The file is not utf8.

If you click on Download and save the file on your disk, you open KWrite, you open the file and View -> setEncoding utf8, utf8 is indeed set.

So the bug is related in my opinion to the fact that the file is temporarily cached.

Anders confirmed the behaviour
Comment 1 Christoph Cullmann 2004-11-04 14:15:06 UTC
kate part honors the encoding provided by the server on loading, this means if servers says it is .... we will use  ....
Comment 2 Christoph Cullmann 2004-11-04 14:26:17 UTC
how to fix it: 

-allow both in config dialog and in file dialog to select an "auto" mode, default to this
-only use provided encoding by the server if we are in auto mode, otherwise fall back to give encoding
Comment 3 Anne-Marie Mahfouf 2004-11-04 15:06:20 UTC
-allow both in config dialog and in file dialog to select an "auto" mode, default to this

in config dialog, in Open/Save I set Encoding on Unicode. I don't see 'default' here. Where is the setting you mention?

-only use provided encoding by the server if we are in auto mode, otherwise fall back to give encoding 
I don't understand this.

So you're saying that it's because of my settings that this file does not open correctly. The View -> SetEncoding is on Auto but the file is not opened as utf-8.
Comment 4 Christoph Cullmann 2004-11-10 10:37:08 UTC
no, you get me wrong, this was only for the devs: how to fix this :)
it can't be done in current kate version, as the charset provided by the server will always be used
Comment 5 Christoph Cullmann 2004-11-25 00:14:08 UTC
should be fixed in cvs now