Setting encoding in Kate

Kevin Krammer krammer at
Wed Sep 6 13:53:08 BST 2017

On Monday, 2017-09-04, 22:46:44, Nikos Chantziaras wrote:
> Is there a way to mark a file as using a specific encoding? Like some
> string inside a C comment that Kate recognizes?

I think Kate does understand comments like this, I vaguely remember seeing 
some for giving hints on intentation.

So I've checked my KDE source and found this

// kate: encoding utf-8


/* kate: encoding utf-8 */


Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <>

More information about the kde mailing list