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
We are using ChartJS Node Canvas to create charts saved to image files to be served from a Discord bot.
One issue we are currently facing is that character encoding appears messed up.
The data (when debugging and stepping through the code) is absolutely fine and the names in text all appear correctly - but when the Chart renders the values they come up with the UTF-8 characters replaced with something else.
I also note that this example the UTF-8 character is a "Unicode Character 'KATAKANA MIDDLE DOT' (U+30FB)"
And I can see the icon is "30| FB"
We are running this on a NodeJS 20.8 image and using "chartjs-node-canvas": "^4.1.6",
The text was updated successfully, but these errors were encountered:
We are using ChartJS Node Canvas to create charts saved to image files to be served from a Discord bot.
One issue we are currently facing is that character encoding appears messed up.
The data (when debugging and stepping through the code) is absolutely fine and the names in text all appear correctly - but when the Chart renders the values they come up with the UTF-8 characters replaced with something else.
I also note that this example the UTF-8 character is a "Unicode Character 'KATAKANA MIDDLE DOT' (U+30FB)"
And I can see the icon is "30| FB"
We are running this on a NodeJS 20.8 image and using "chartjs-node-canvas": "^4.1.6",
The text was updated successfully, but these errors were encountered: