7
I created a page html, however the accents are not being read, already tested the following code but does not work.
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
What can I do then?
7
I created a page html, however the accents are not being read, already tested the following code but does not work.
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
What can I do then?
6
It all depends on how the characters are being saved and loaded If instead of Heart, he displays Cora the or Coraã§. In the first case Cora the, your page in ISO-8859-1 is getting the word Heart stored in UTF-8 from the source, be it from the database or an XML, txt etc. Already the second case (Coraã§) is your page in UTF-8 displaying the word Heart stored in ISO-8859-1 of origin.
You can put the encoding inside the meta like this:
For ISO-8859-1:
<html>
<head>
<title>Minha pagina</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
To UTF-8:
<html>
<head>
<title>Minha pagina</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
And you can also put html encoding for the accents, follow the list:
Tabela com os caracteres mais utilizados
A maiúsculo com acento agudo Á Á
E maiúsculo com acento agudo É É
I maiúsculo com acento agudo Í Í
O maiúsculo com acento agudo Ó Ó
U maiúsculo com acento agudo Ú Ú
A minúsculo com acento agudo á á
E minúsculo com acento agudo é é
I minúsculo com acento agudo í í
O minúsculo com acento agudo ó ó
U minúsculo com acento agudo ú ú
A maiúsculo com acento circunflexo  Â
E maiúsculo com acento circunflexo Ê Ê
O maiúsculo com acento circunflexo Ô Ô
A minúsculo com acento circunflexo â â
E minúsculo com acento circunflexo ê ê
O minúsculo com acento circunflexo ô ô
A maiúsculo com crase À À
A minúsculo com crase à à
U maiúsculo com trema Ü Ü
U minúsculo com trema ü ü
C cedilha maiúsculo Ç Ç
C cedilha minúsculo ç ç
A com til maiúsculo à Ã
O com til maiúsculo Õ Õ
A com til minúsculo ã ã
O com til minúsculo õ õ
N com til maiúsculo Ñ Ñ
N com til minúsculo ñ ñ
E comercial & &
Aspa dupla " "
Aspa simples ' '
Menor que < <
Maior que > >
1
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<h1>ÁÀÃÂ</h1>
<body>
</html>
Upshot:
0
Maybe you’re using HTML 5 without knowing, that’s the difference between the two:
<!-- HTML 4 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- HTML5 -->
<meta charset="utf-8"/>
Try with HTML 5 shape.
Browser other questions tagged html
You are not signed in. Login or sign up in order to post.
Post your <head> to check the problem better.
– Lucas de Carvalho
Related / Possible Duplicate of Doubt with charset=iso-8859-1 and utf8.
– UzumakiArtanis