question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Japanese characters don't render when using the Docker image

See original GitHub issue

Describe the bug Japanese characters don’t render when using the Docker image. It does work when using the live editor and when using an mmdc installed using yarn however.

To Reproduce in /tmp/try.mmdc:

graph LR
    A -->|こんにちは| B
cat /tmp/try.mmdc | docker run --rm -i -v /tmp:/host minlag/mermaid-cli -o /host/output.pdf

Expected behavior こんにちは renders correctly

Screenshots screenshot

Desktop:

  • OS: Linux Debian 9

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
talwcommented, Jan 7, 2021

@talw : does the CLI tool (not the Docker) work correclty with the Japanese characters?

Thanks @MindaugasLaganeckas, I added that information to the issue description. The problem is only reproduced when using the container. It renders fine with a yarn-installed executable

0reactions
talwcommented, Jul 3, 2021

Thanks for the fix!

Read more comments on GitHub >

github_iconTop Results From Across the Web

.net core(system.drawing.common) not able to render chinese ...
I am creating image(tiff) for Chinese and Arabic texts using system.drawing.common in my .Net core API. Do I need any additional font files...
Read more >
Japanese character are rendering as square bracket in pdf ...
Japanese character are rendering as square bracket in pdf report. ... I think Docker image i am using is alphine based so we...
Read more >
How to Fix and Debug Docker Containers Like a Superhero
Container errors are tricky to diagnose, but some investigative magic works wonders. Read along to learn how to debug Docker containers.
Read more >
Japanese characters are blank in the PDF generated by java ...
Coding example for the question Japanese characters are blank in the PDF generated by java code using iText library when deployed on docker...
Read more >
Convert HTML to PDF using Blink in Asp.NET Core not render ...
... using Blink in Asp.NET Core not render asian characters - ASP. ... I've deployed it on Azure in a docker container and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found