Skip to content

[BUG] Drawio preview wrong svg text #257

Closed

Description

@kolanski

Bug Report: Cyrillic Font Issue in Diagram Preview

Description:

When creating diagrams using Cyrillic fonts in the Draw.io application, an issue occurs where the text appears corrupted or misencoded in the preview mode. However, the text displays correctly when the diagram is opened in the editor. This issue only affects the preview and does not impact the text in the editor view.

Steps to Reproduce:

  1. Create a new diagram in Draw.io.
  2. Use Cyrillic fonts or text within the diagram.
  3. Save the diagram and switch to preview mode.

Expected Result:

The text in Cyrillic fonts should appear correctly and consistently in both the editor and preview modes.

Actual Result:

The text appears corrupted or misencoded in the preview mode, while it displays correctly in the editor mode.

Screenshots:

  • Diagram with Cyrillic fonts in edit mode:
    png

  • Screenshot of the corrupted preview:
    diagram drawio2

Additional Information:

  • Issue occurs only in the preview mode.
  • The editor view displays the text correctly.

Severity:

Moderate — affects the usability of the preview feature for diagrams containing Cyrillic text.

Suggested Fix:

Investigate the encoding or rendering process used in the preview mode. Maybe base64 svg import as blob converting is wrong.

Activity

  1. xseth03 commented on Sep 24, 2024

    @xseth03

    Hi,

    Same issue with latin font :
    image

  2. Servostar commented on Oct 3, 2024

    @Servostar
    Contributor

    The issue happens due to an encoding error. Drawio makes use of UTF-8, while the client decodes to Latin-1, messing up non-ASCII characters.

  3. Philipinho commented on Oct 10, 2024

    @Philipinho
    Member

    Fixed. Thanks to @Servostar.

  4. added 2 commits that reference this issue on Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions