Bug 128785

Summary: Characters thrown away without warning when opening using wrong encoding
Product: [Applications] kate Reporter: Reuben Thomas <rrt>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:

Description Reuben Thomas 2006-06-07 20:42:54 UTC
Version:            (using KDE KDE 3.5.2)
Installed from:    Debian testing/unstable Packages
OS:                Linux

Kate doesn't warn me when I open, for example, an ISO-8859-1 file with utf-8 encoding. It simply throws away the characters that are invalid under the selected encoding.

Note: there are several bugs about what happens when the file is SAVED, but in fact, in this case that is too late, as the invalid characters have already been removed, and the problem occurs when the file is OPENED.
Comment 1 Jaison Lee 2006-06-07 21:37:02 UTC
Bug #55355 is exactly what you are describing, right down to the same encodings you are having problems with.


*** This bug has been marked as a duplicate of 55355 ***
Comment 2 Reuben Thomas 2006-06-07 21:47:32 UTC
I don't think this bug is a dup. The bug you've made it a dup of is actually a wishlist item, asking for better behaviour in future (auto-detection of encodings). Providing this would indeed fix my problem, but it's hard.

I'm just asking for a simple warning, to avoid data loss, which is much simpler to implement and hence has a chance of being implemented sooner.

I'd agree that this bug is a dup iff you intend to implement encoding detection soon. Otherwise, I think folding a current bug into a future wishlist item is a bad idea.
Comment 3 Christoph Cullmann 2007-05-19 16:17:06 UTC
There is now a warning that the file was no correct utf-8 and chars got lost...