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

UTF-8 Character Encoding Issue #139

Open
MartinHatchUK opened this issue Oct 17, 2023 · 0 comments
Open

UTF-8 Character Encoding Issue #139

MartinHatchUK opened this issue Oct 17, 2023 · 0 comments

Comments

@MartinHatchUK
Copy link

MartinHatchUK commented Oct 17, 2023

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.

image

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",

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

1 participant