Created attachment 171118 [details] Screenshot *** If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports *** SUMMARY It seems this only occurs with unsaved files. STEPS TO REPRODUCE 1. Enable automatic loading and recovery of unsaved files in the session settings. 2. Save a session, new file and input some Chinese characters. 3. Just close Kate without save, and reopen it again. 4. You will find that the unsaved file in the session will display Chinese content as garbled text.
Git commit 847f49b868bc014814f91f9f5106b691b06eb3d0 by Christoph Cullmann. Committed on 09/07/2024 at 16:27. Pushed by cullmann into branch 'master'. ensure we restore stashed documents with right encoding M +10 -11 apps/lib/katestashmanager.cpp https://invent.kde.org/utilities/kate/-/commit/847f49b868bc014814f91f9f5106b691b06eb3d0