On Wednesday September 06 2017 14:53:08 Kevin Krammer wrote: >So I've checked my KDE source and found this > >// kate: encoding utf-8 > >and > >/* kate: encoding utf-8 */ Also works with other common comment delimiters like #. However and IIRC it only works in the first and last handful of lines of a file. R.