https://bugs.kde.org/show_bug.cgi?id=440359
Bug ID: 440359 Summary: Warning message when opening a file containing just a UTF-8 BOM Product: kate Version: 21.04.3 Platform: Other OS: Linux Status: REPORTED Severity: minor Priority: NOR Component: part Assignee: kwrite-bugs-n...@kde.org Reporter: cspie...@gmail.com Target Milestone: --- Created attachment 140372 --> https://bugs.kde.org/attachment.cgi?id=140372&action=edit A file consisting of a UTF-8 BOM Opening a file which contains only a UTF-8 BOM (i.e. U+FEFF, "Zero width no-break space") causes the following message to appear: The file /path/to/BOM was opened with UTF-8 encoding but contained invalid characters. It is set to read-only mode, as saving might destroy its content. Either reopen the file with the correct encoding chosen or enable the read-write mode again in the tools menu to be able to edit it. Such a file can be created with: printf "\xef\xbb\xbf" > BOM I've also attached the file here. If there are other characters following the BOM there is no error message. SOFTWARE/OS VERSIONS KDE Plasma Version: 5.22.3 KDE Frameworks Version: 5.84.0 Qt Version: Latest tagged 5.15 from KDE's repository -- You are receiving this mail because: You are watching all bug changes.