Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can't show greek letters in browser

I am developing a website using html and css and i can't see greek letters.Instead of this,i only see symbols. i have the following line in my html file:

<meta http-equiv="content-type" content="text/html;charset=utf-8" />

I also tried:

<meta http-equiv="content-type" content="text/html;charset=windows-1253" />
<meta http-equiv="content-type" content="text/html;charset=ibm869" />
<meta http-equiv="content-type" content="text/html;charset=ibm737" />
<meta http-equiv="content-type" content="text/html;charset=iso-8859-7"/>
<meta http-equiv="content-type" content="text/html;charset=x-mac-greek"/>
<meta http-equiv="content-type" content="text/html;charset=x-EBCDIC-GreekModern "/>
<meta http-equiv="content-type" content="text/html;charset=x-EBCDIC-Greek "/>

Nothing worked! p.s. I tried this in Firefox and Internet Explorer

like image 541
Dchris Avatar asked Mar 15 '13 16:03

Dchris


3 Answers

As per your comment

Open your file in Notepad, File -> Save As from the top menu, then there's a drop down in the save as dialogue where you can select character encoding. Make sure UTF-8 is chosen rather than ANSI

Once the file has been saved as UTF-8 then you should have no problems adding Greek letters, (or Russian, Hebrew, Japanese or whatever)

like image 124
John Avatar answered Sep 20 '22 00:09

John


Per the comments / answers here, you'll need to check to see what the encoding is set to. Best way would be to see exactly how the server is sending it by inspecting the Response Headers. You can do this with Developer Tools on most browsers.

I just inspected the headers for this page using Chrome:

enter image description here

like image 32
Aaron Blenkush Avatar answered Sep 21 '22 00:09

Aaron Blenkush


Make sure you check the file without the local server which many times that causes the problem. I had the same problem and opened the file from the browser directly and worked perfectly.

like image 22
Manos Chatziefraimidis Avatar answered Sep 20 '22 00:09

Manos Chatziefraimidis