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

ggsave() to .html does not work with special characters #900

Closed
gregorbaer opened this issue Oct 11, 2023 · 1 comment
Closed

ggsave() to .html does not work with special characters #900

gregorbaer opened this issue Oct 11, 2023 · 1 comment
Milestone

Comments

@gregorbaer
Copy link

🐛 Issue

Plots that are saved with ggsave() as .html cannot by default correctly display special characters (e.g. €, ü, ä, ö, etc.). This issue only occurs when saving to .html, not when saving to .svg or other formats, or when displaying the graphs in a notebook.

Manually editing the .html code of the saved plot to include the line <meta charset="UTF-8"> fixes the display issue.

💡 Proposed Solution

Use UTF-8 encoding by default when saving to .html with ggsave() (or another encoding which can deal with the special characters).

@gregorbaer gregorbaer changed the title ggsave() to .html does not use utf-8 encoding ggsave() to .html does not work with special characters Oct 11, 2023
@alshan alshan added this to the 2023Q4 milestone Oct 11, 2023
@alshan
Copy link
Collaborator

alshan commented Nov 7, 2023

Fixed in v4.1.0

@alshan alshan closed this as completed Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants