Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to set title with Chinese? #1022

Open
protester-pog opened this issue Sep 26, 2024 · 2 comments
Open

how to set title with Chinese? #1022

protester-pog opened this issue Sep 26, 2024 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@protester-pog
Copy link

`from diagrams import Diagram
from diagrams.aws.compute import EC2
from diagrams.aws.database import RDS
from diagrams.aws.network import ELB
from diagrams.aws.storage import S3

with Diagram("中文", filename='test',show=False):
ELB("lb") >> EC2("web") >> RDS("userdb") >> S3("store") tehmaze/diagram#1
ELB("lb") >> EC2("web") >> RDS("userdb") << EC2("stat") tehmaze/diagram#2
(ELB("lb") >> EC2("web")) - EC2("web") >> RDS("userdb") tehmaze/diagram#3
`

my code run has result ,the png image is show unicode not utf-8, how i can set title with utf-8 ?
diagrams==0.23.4
企业微信截图_20240924154603

@mingrammer mingrammer added the help wanted Extra attention is needed label Oct 14, 2024
@mingrammer
Copy link
Owner

I'll check this issue. Thank you for reporting it.

@tiaz0128
Copy link

tiaz0128 commented Nov 2, 2024

@protester-pog

I've checked and Chinese characters seem to display correctly.
Could you provide more details about your execution environment?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants