https://bugs.kde.org/show_bug.cgi?id=500515
Bug ID: 500515 Summary: [export/html] html output has random glyph, not looking like what I have in Konsole Classification: Applications Product: konsole Version: 22.12.3 Platform: Debian stable OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: konsole-de...@kde.org Reporter: i...@davidrevoy.com Target Milestone: --- Hi, I love exporting terminal output of konsole as html but the result is always broken as soon as a special character is part of the output. ## How to reproduce 1. Open Konsole 2. Write command lines that output special characters (eg. 'tree' is good for that) 3. Export the output as HTML (File → Save Output As and select an html file format). 4. Host your HTML file, and open it in Firefox. ## Result: The special characters are corrupted, and random glyph appears. Example: https://peppercarrot.com/extras/forum/2025-02-21_konsole-default-html-output.html ( screenshot: https://peppercarrot.com/extras/forum/2025-02-21_screenshot_122028_net.jpg ) ## Expectation It should looks like what I had in konsole, like that: https://peppercarrot.com/extras/forum/2025-02-21_screenshot_123118_net.jpg ## Workaround I saw the html output file don't have any header, or set any charsets. If one manually edit the html output file with Kate, and insert at the start of the file: ``` <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> </head> ``` Then the output will be readable again. Here is an example: https://peppercarrot.com/extras/forum/2025-02-21_konsole-default-html-output_FIXED.html Too bad this workaround is tedious to do over and over again, I would appreciate an automatic way to get this (or another fix) to read and transmit my HTML output correctly. Thank you. -- You are receiving this mail because: You are watching all bug changes.