Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

html5 meta charset-utf-8 not working

Tags:

html

jquery

meta

i am using this meta.

  <meta charset="UTF-8">
   <meta http-equiv="Content-type" content="text/html; charset=UTF-8">

i have used this text:

<p>Vignerons de père en fils depuis 1847 notre Maison se situe au cœur du vignoble champenois, à quelques kilomètres d’Epernay sur la commune de Moussy.</p>

show my text :

Vignerons de p�re en fils depuis 1847 notre Maison se situe au c�ur du vignoble champenois, � quelques kilom�tres d�Epernay sur la commune de Moussy.

not working charset="UTF-8".

like image 781
Angu Avatar asked Jun 06 '15 10:06

Angu


2 Answers

It happens. It happened to me as well. what you should do is:1) open your file in notepad(.aspx or php or or html or whatever.) And save it, and specify UTF-8 from save-file-dialog-box. Problem will be solved

like image 75
user786 Avatar answered Sep 28 '22 06:09

user786


The correct encoding needs to be ensured across all stages of development and deployment including:

  1. text editor or IDE (check what the default encoding is)
  2. source control (check the right encoding is stored)
  3. server (check the checkout has the right encoding on filesystem)
  4. web server (check the web server is serving using the right encoding)
like image 44
bjfletcher Avatar answered Sep 28 '22 05:09

bjfletcher