CN characters doesn't work in IE8 - html

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.

Related

Special characters not being read, even though file is set to UTF-8

The special characters in my HTML files are not being read in Firefox (works fine in Safari and Chrome), even though I have the character set set to UTF-8. See the "A Parlatë e A Memorjë" seciton: https://memoriaelinguagrumentina.org/index.html
And this is the meta tag I'm using:
<meta name="viewport" content="width=device-width, initial-scale=1" http-equiv="Content-Type" content="text/html; charset=UTF-8">
I've read through a dozen other questions in this forum with similar problems, but none of the solutions apply to my situation. I don't want to use HTML elements, because it would make editing a nightmare. And I'm not using anything other than HTML and CSS on this page.
Any suggestions?

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">

Firefox not displaying Unicode characters after post method

I have a page http://nepalicalendar.rat32.com/index_nep.php. It displays the nepali unicode page correctly. But after i click the submit button named "View Calendar" Firefox displays unreadable unicode characters. However, other browser does not shows the same problem.
Is there any code i need to add so that Firefox will display unicode character after post method?
Help will be really appreciated if someone could figure out whats wrong going on!! Thanks in advance.
[Note: I have added utf-8 code for displaying the nepali unicode character]
I found the solution myself.
The mistake i was doing was i had placed the tag:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
after favicon, title tags and meta description and title tags. After i placed tag:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
right after the head tag it worked fine. :)
Conclusion: We should put the meta charset tag at the top, right after the head tag, before anything else, even the title tag.
Cheers.. :)

UTF-8 encoding works on PC but not on mobile

The encoding for my site seems to not work on my mobile device.
I´m using this line for setting UTF-8
<meta http-equiv="content-type" content="text/html; charset=utf-8">
On my PC everything works fine, but not on mobile.
In PHPStorm I encoded the whole project as UTF-8 too.
What is wrong?
Solved. I´ve opened the file in Notepad++ and switched the encoding from "UTF-8 without BOM" to "UTF-8"
I use this on one of my sites and it seems to work well.
<meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1 user-scalable=no">

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
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