UTF-8 encoding works on PC but not on mobile - html

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

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?

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.

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.

HTML encoding issue

So I'm making a website in Spanish. The .html file is saved as utf-8, and even declared
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
in the <head> of the page, but I'm still having trouble showing characters such as ñ or á.
What can I do?

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