can't show greek letters in browser - html

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

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)

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:

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.

I had the same problem while developing a page in greek. The problem wasn't the utf-8. I had to correct the CSS.
Regards,
Nick

Related

Arabic text displays as question marks - firebase hosting

I'm setting up a page for terms with firebase hosting. I deployed the page but my text in page shows as question marks. my text is in Arabic language.
I tried many answers, but none of them work.
maybe the problem in firebase hosting?
I tried:
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1256">
- <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-6">
My Code:
<!DOCTYPE html>
<html>
<meta charset="utf-8"/>
<body>
<h1 dir='rtl' lang='ar' >الشروط</h1>
<p dir="rtl" lang="ar">الشروط</p>
Code looks OK - just make sure your editor save it in UTF-8,
To verify this - download the file from the server as "yourfilename.html" and open it locally in your browser - see if you see it in Arabic.
If you don't, open it in notepad - you will probably see question marks which means you didn't save the file in UTF-8 format - you probably saved it as ASCII.
If on the other hand you will see it in Arabic - seek in the response structure you receive maybe something there is not right.

HTML Special Characters not rendered properly

I've setup VestaCP on a 2 identical Debian 7 Servers. Strangers on server one the special characters display properly out of the box, but on the Primary server, the special characters are not being rendered correctly, they give the black "?" instead. Both server's are exact same software and config. writes here..
I've tried setting
/etc/apache2/conf.d/charset
/home/admin/conf/web/apache2.conf
/etc/apache2/apache2.conf
in .htaccess
AddDefaultCharset UTF-8
AddCharset UTF-8 .html
but it doesn't resolve at all. Please help me.
Interestingly, the pages (quite and old site) use
in their header.
Please check page here : http://168.235.66.20:8080/
The data is encoded using Windows-1215 not UTF-8. You should convert it to UTF-8.
You should change in your HTML :
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
With :
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

CN characters doesn't work in IE8

I have a multilanguage project, where i have CN (chinese) too. The characters works on every browsers, except IE8. I'm using the folowing meta tag for encoding.
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
Maybe i miss something. If anyone got an idea I would appreciate it.
Add this meta tag too and this will work.
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="zh-CN"/>
zh is primary-code of Chinese.
I just realised what happens. Now it works with the normal UTF-8 encoding.
So my problem was that I installed windows XP with native IE8 for testing, but some language pack were missing, so for chinese characters didn't used any font.
If some1 got this issue, you can check like this:
Go to /tools/internet options/fonts/
Set the "Language Script" to Chinese Simplified
Select the only option - Arial Unicode MS
Accept the changes- problem solved.
Sorry for my question, it was inattention from my side. Anyway hope I helped some others who got the same problem.

how to display chinese character in HTML

I have created web page using Chinese. When I view the page with Google chrome, all Chinese characters are corrupted. Do I have to add something in HTML page?
There are two ways to define the encoding of your page. You should include inside your <head> tags an encoding tag, two ways to do that follow below:
Short way:
<meta charset="utf-8">
Long way:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
You can have more details about the difference between these two ways in this question:
<meta charset="utf-8"> vs <meta http-equiv="Content-Type">
If you want to see a real example, take a look in the weibo.com source code at this line of code.
Make sure to use UTF-8 or a comparable encoding.
This can be made sure in the http headers:
Content-Type: text/html; charset=utf-8
use utf-8 character set otherwise it will all be code
remember <meta charset="utf-8"
Ensure you are using the UTF-8 character set

marathi language not shown properly in browser

In my html document, I have my html as:
<html>
<head><title>title</title></head>
<body> <div>विजय कदम</div> </body>
</html>
I am getting output as:
विजय कदम
Any idea? what do I need to specify?
Save your file in UTF-8 encoding
Add meta tag to the html to support UTF-8
Make sure your server supports UTF-8 encoding, an example for Apache.
How to change the page encoding to UTF-8:
Add the following tag to the HTML:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
Or the HTML5 equivalent:
<meta charset="utf-8" />
for more information about characters encoding check this out.
You need an editor that saves in Unicode UTF-8.
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
you can also use a converter to display hindi. link: http://vikku.info/indian-language-unicode-converter/hindi-unicode-converter.html what you do is, you paste html text. Hope this helps!