Setting encoding in Kate

Kevin Krammer krammer at kde.org
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

and

/* kate: encoding utf-8 */

Cheers,
Kevin

-- 
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: <http://mail.kde.org/pipermail/kde/attachments/20170906/c5c93c5a/attachment.sig>


More information about the kde mailing list