You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
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
🐛 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).The text was updated successfully, but these errors were encountered: