mermaid-live-editor icon indicating copy to clipboard operation
mermaid-live-editor copied to clipboard

Can it support Chinese? The exported image Chinese garbled Please tell me a revolution

Open zhangjiaoliduck opened this issue 1 year ago • 4 comments

Describe the bug Can it support Chinese? The exported image Chinese garbled Please tell me a revolution

zhangjiaoliduck avatar Sep 21 '23 02:09 zhangjiaoliduck

Please add the code sample.

sidharthv96 avatar Sep 21 '23 05:09 sidharthv96

sequenceDiagram Alice->>+John: 你好? Alice->>+John: 能听到吗? John-->>-Alice: 可以! John-->>-Alice: 好! this way when i export a .png format, Chinese will be a mess hhhh so i saved the .svg format and turn it to a .png format so that Chinese can be showed correctly

zhangjiaoliduck avatar Sep 22 '23 07:09 zhangjiaoliduck

I meet the same issue. When I goto mermaidchart from live editor page and click "Export diagram" button on left bar, I found the exported png's Chinese content became some squares(i drew flowchart)

devzyc avatar Oct 18 '23 02:10 devzyc

Chinese is working in both cases. The issue might be with your computer not having the right fonts maybe?

PNG Download. mermaid-diagram-2023-12-10-234132

mermaid.ink PNG. image

sidharthv96 avatar Dec 10 '23 18:12 sidharthv96

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days

github-actions[bot] avatar Mar 14 '24 00:03 github-actions[bot]