HTML encoding issue - html

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?

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.

Symbol appearance is ok on my computer, but different on other

I have HTML page, and there are symbols as alpha, omega etc. Why i have it OK on my computer, but wrong on other? Is it problem with encoding or font issues?
On my pc: α
Other : ╬▒
add the correct encoding on your web.config.
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />
Its also depend how you save your asp.net file. If you save it as code page 1253 (that is the Greek for alpha -> α) or UTF-8. Its better to save it as utf-8 and show it as utf-8
about globalization https://learn.microsoft.com/en-us/previous-versions/dotnet/netframework-4.0/hy4kkhe0(v=vs.100)
for html files
you declare the charset right after the header as:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
for utf-8
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

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

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!