Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spanish Characters in HTML Page Title

Tags:

html

utf-8

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

enter image description here

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

like image 891
user580950 Avatar asked Feb 18 '13 12:02

user580950


2 Answers

This works.

<!DOCTYPE html>
<head>
    <meta charset="utf-8">
    <title>Telefonía</title>
</head>
like image 52
Vucko Avatar answered Sep 22 '22 19:09

Vucko


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";
like image 26
Jorge Eduardo Avatar answered Sep 24 '22 19:09

Jorge Eduardo