question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hello, 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>`

2017-07-13_2151

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
etimbergcommented, Jan 7, 2021

Not entirely sure what the issue is here, but #8224 has a working example

0reactions
XaspMecommented, Dec 22, 2020

Exact same, issue closed, but still remains

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found