Encoding problem
See original GitHub issueHello, I have a little problem with encoding. How can I solve this problem the file encode is utf-8 `<!DOCTYPE html>
<html><head>
<title>Chart Example</title>
<script src="Chart.min.js"></script>
</head>
<body>
<canvas id="myChart" width="100" height="100"></canvas>
<script>
var ctx = document.getElementById("myChart");
var myChart = new Chart(ctx, {
type: 'bar',
data: {
labels: ["حمادة", "حمادة", "حمادة", "حمادة", "حمادة", "حمادة"],
datasets: [{
label: 'عدد الاصوات',
data: [12, 19, 3, 5, 2, 3],
backgroundColor: [
'rgba(255, 99, 132, 0.2)',
'rgba(54, 162, 235, 0.2)',
'rgba(255, 206, 86, 0.2)',
'rgba(75, 192, 192, 0.2)',
'rgba(153, 102, 255, 0.2)',
'rgba(255, 159, 64, 0.2)'
],
borderColor: [
'rgba(255,99,132,1)',
'rgba(54, 162, 235, 1)',
'rgba(255, 206, 86, 1)',
'rgba(75, 192, 192, 1)',
'rgba(153, 102, 255, 1)',
'rgba(255, 159, 64, 1)'
],
borderWidth: 1
}]
},
options: {
scales: {
yAxes: [{
ticks: {
beginAtZero:true
}
}]
}
}
});
</script>
</body>
</html>`
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
How to solve unicode encoding issues
In ths new article, our expert will explain you how to solve unicode encoding issues. If you have any question, don't hesite to...
Read more >Solving character encoding problems
Problem. Computers store text as a sequence of numbers where each character has a unique number according to an agreed upon "character encoding...
Read more >UTF-8 Character Debug Tool
Unicode Windows 1252 Expected Actual UTF‑8 Bytes Unicode Windows 1252 Expect...
U+20AC 0x80 € € %E2 %82 %AC U+00C0 0xC0 À
0x81 U+00C1 0xC1 Á
U+201A...
Read more >How to fix character encoding issue in html?
1 Answer 1 · On Notepad++ select Encoding -> ISO-8859-15 and save the file. · Use <meta http-equiv="Content-Type" content="text/html; charset=ISO- ...
Read more >How to Fix Word File Encoding Error? [4 Methods] - YouTube
Today's video is all about MS word file encoding errors. Fix encoding error file directly: https://bit.ly/3KnZSoI Step-by-step text ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Not entirely sure what the issue is here, but #8224 has a working example
Exact same, issue closed, but still remains