Reputation: 43843
I have a web page, and if I open it in windows notepad, a piece of text looks like this
Avertissement sur la sécurité
But if I open it in notepad++, it looks like
Notepad++ also says the file is in utf-8 encoding too.
If I open it in a browser, it looks like
I have
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
on top too.
Does anyone know how I can fix this?
Thanks
Upvotes: 4
Views: 11595
Reputation: 43574
You have to make sure the encoding on <meta>
is the same like the file encoding (on Notepad++).
You want to use UTF-8?
Encoding -> UTF-8 (without BOM)
and save the file.<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
You want to use ISO-8859-15?
Encoding -> ISO-8859-15
and save the file.<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15">
Upvotes: 6