characters on gedit

Asked by Luis Revez

Hello;

First, I apologize if my English (i'm from Portugal) is not well written. But I hope you can understand.
I recently installed Ubuntu and I am using gedit to learn some Web programming like HTML and PHP.
But when opening a php or html document browser, some characters are not well displayed.Examples:

"Mãe" on browser is displayed as "mãe";
"maço"-> "maço"
"Itália" -> Itália

How can I solve this?

Thanks in advance

Luis

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gedit Edit question
Assignee:
No assignee Edit question
Solved by:
Marc Stewart
Solved:
Last query:
Last reply:
Revision history for this message
Best Marc Stewart (marc.stewart) said :
#1

This isn't a problem with gedit but with your HTML, which isn't letting the browser know that the document is encoded in UTF-8. In the <head> of your document, add this line:
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
When you reload the page in your browser, you should then see the correct characters.

Revision history for this message
Luis Revez (luisrevez) said :
#2

:) Thanks! It worked!