[konsole] [Bug 511323] New: HTML export adds extra character and nulls for lines with CJK characters

[email protected] Wed, 29 Oct 2025 14:21:59 +0000
Newsgroups gmane.comp.kde.devel.konsole
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=3D511323

            Bug ID: 511323
           Summary: HTML export adds extra character and nulls for lines
                    with CJK characters
    Classification: Applications
           Product: konsole
      Version First 25.04.2
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 186294
  --> https://bugs.kde.org/attachment.cgi?id=3D186294&action=3Dedit
In the HTML file, the line ends with an extra character.

SUMMARY
HTML export inserts extra character at line end and null characters between=
 CJK
characters.

STEPS TO REPRODUCE
1. Use the following command to print CJK characters:
  ```
  echo "=E4=B8=AD=E6=96=87=E6=B5=8B=E8=AF=95=E8=A1=8C"
  ```
2. Use "Save Output As" to export the output as an HTML file.
3. Open the exported HTML file.

OBSERVED RESULT
The exported line ends with an extra character, and additional null charact=
ers
are present between CJK characters in the HTML file.

EXPECTED RESULT
The line should end with no extra characters, and the file should not conta=
in
null characters.

SOFTWARE/OS VERSIONS
Linux: Debian GNU/Linux 13
KDE Plasma Version: 6.3.6
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION

--=20
You are receiving this mail because:
You are the assignee for the bug.=