It's a font related problem. The English font is DejaVu Sans Mono, and the chinese font is WenQuanYi Zen Hei Mono. Reproducible: Always Steps to Reproduce: 1.Install a WenQuanYi Zen Hei fonts. (Package fonts-wqy-zenhei for Debian) 2.Make sure monospace prefer WenQuanYi Zen Hei Mono 3.Set locale to zh_CN.UTF-8 4.Set fonts used by kwrite to DejaVu Sans Mono 5.Copy these chars "test underscore _ 测试下划线" to kwrite Actual Results: "_" didn't get displayed as in Konsole Expected Results: All chars get displayed.
Known issue: since the painting is line-based fonts whose characters exceed the lower or upper bound of their own line height draw in the area of neighboring lines. When neighboring lines are drawn, these parts are lost. Mostly a problem in the fonts, but then again, would be nice, if Kate could handle it correctly. You can try other fonts, like Noto Sans mono for instance, or change the font size, that also sometimes helps. *** This bug has been marked as a duplicate of bug 335079 ***