On Wednesday September 06 2017 16:16:16 Nikos Chantziaras wrote: >Even worse, if I have that comment in the file and try to switch the >encoding manually (from and to CP1252), then Kate corrupts the file by >deleting the unrecognized "block" characters. That might be an error in some underlying KF5 framework or even in Qt5. Switching the encoding as you call it apparently triggers a conversion of the textfile, NOT just how the file's individual bytes are interpreted. R.