Bug 85686

Summary: Autodetect Source File Codepage
Product: [Applications] kate Reporter: Alexander Darovsky <adarovsky>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alexander Darovsky 2004-07-22 12:33:08 UTC
Version:           3.0.2 (using KDE KDE 3.2.3)
Installed from:    Gentoo Packages

There is a de-facto standard way to set up an
encoding in the file, for example:

// coding: utf-8

where '//' is a line comment character(s), in Python it is 

# coding: utf-8.

It should be in the first two lines of a file.

Some editors (I know emacs and Eric3 Python IDE) use this feature.
It would be nice to make KDevelop (or KWritePart) to make use of this feature too.

Regards, Alex Darovsky
Comment 1 Christoph Cullmann 2005-03-24 12:20:39 UTC

*** This bug has been marked as a duplicate of 55355 ***