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

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

Related

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

Different rendering of European characters on two pages of same site with same charset

I have a site which is supposed to show French, Spanish characters. There is this strange situation where two pages handle it completely differently.
Both pages share the same header file where I use this meta tag:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
I also set the charset at the global level in IIS > MIME Types:
.asp text/html; charset=iso-8859-1 local
The pages are http://aer2.es/fr/ and http://aer2.es/fr/method
What could be the reason for this inconsistency?
The physical encoding of the other file is in UTF-8, instead of Windows-1252 (ANSI, ISO-8859-1 ... + other mislabelings you see fit)
You can fix it by opening the other file, for example, in notepad, hitting save as, and choosing "ANSI" from the Encoding dropdown menu and then using the new saved file.
Another way to do it is to change the meta tag in the other page to UTF-8:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
however, when saving the change, you need to ensure that you are saving the file in UTF-8 encoding.

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!

HTML Encoding for French characters

I have a email template, that has French copy. If I load this email template up in IE I receive square boxes where the accented characters are. How can I combat this? I assume it is down to encoding?
Ensure the HTML template has the correct meta tag in the header for Content-Type.
You did not specify if the encoding is Latin1, UTF-8 or other - you need to find out first in order to use the right value.
Here is what a UTF-8 meta tag would look like:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Just make sure that the actual encoding of the textfile (I assume it'll be either ISO-8859-1 or UTF-8) is in accordance with the meta tag defining the encoding in the beginning of the file. e.g.:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
see http://en.wikipedia.org/wiki/Character_encodings_in_HTML