My HTML code for Page title looks like this
<title>Telefonía</title>
When i check it on browser the SPanish character is not displayed exactly like the above
It shows page title as below
I tried using & iacute; AND
**&# 237; ** but it doesnt work in PAGE TITLE
Here is my website url http://tinyurl.com/agdsqff i checked all the special codes but it doesnt work
Try writing
í
instead. These are HTML escape characters. Here you can find a whole list http://www.theukwebdesigncompany.com/articles/entity-escape-characters.php
This works.
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Telefonía</title>
</head>
Put this in your <head>
:
<meta charset="UTF-8">
and if you want change your title dynamically in you .js put:
document.title="telefonía";
See http://www.ascii.cl/htmlcodes.htm to check how you should encode special characters.
In this case it would be í
or Í
You have to check two things:
- Your file encoding. Yes, your HTML file. You have to save it as UTF-8 and then write "í" or whatever character you need.
Your <meta>
tag. It should look like:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Un saludo!
The element <title>Telefonía</title>
works just fine, provided that the document is saved in UTF-8 encoding (which is the encoding declared in an HTTP header sent by the server – no meta
tag inside the document can override that).
You seem to be changing the content of your page trying various ways that cannot work, such as <title>Telefonía</title>
and <title>Telefoniacute;a</title>
. If you use an entity reference, you should write <title>Telefonía</title>
. But there is no need for that: using the character as such is cleaner and simpler
<p>Telefonía</p>
is the hex code for it.
í works as well
http://jsfiddle.net/PDCvw/
EDIT
It appears to work for me in the title. A link is http://shodor.org/~amalani/acute.html
You have the code
<title>Telefon&iacute;a</title>
but what you need is
Telefonía
Telefonía