Firefox not displaying Unicode characters after post method - html

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.. :)

Related

Weird icons appearing on Safari in between words

I'm seeing strange icons on Safari, but only in one section of my site, I've tried googling/searching stack for an answer but it's hard because I can't copy the symbols and in the inspector there's just space between each word. The only way I can show the problem is with a picture:
Help me Stackoverflow, you're my only hope!
The problem is that your browser is using a different character encoding from that of the document you're viewing.
So be sure that your web page uses the UTF-8 encoding:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
It was photoshop's fault, I'd copied the text straight from the PSD and I guess it had some encoding that added those symbols, I've re-typed the quote by hand (shudder) and the symbols are gone :)

UTF-8 Display for HTML

I have some special characters in UTF8 format which I want to display. First I tried to read the origin (JSON) as UTF8 having also any kind of UTF8 meta tags in the header:
<meta charset="utf-8">
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="content-type" content="application/json; charset=utf-8" />
As this did not work, I transfered the special characters to HTML syntax and tried (with and without the UTF-8 headers) to get it displayed. But somehow I even do not get this. Here is the text I can add in a simple HTML file, which is then not displayed correctly.
It's Possible! � Our Experiences
I also tried this page with the ISO-8859-1 charset, but this does not work as well. I hope someone can help me.
Thanks,
Katja
If � is literally the text you get in your JSON, there's nothing you can do. � is the HTML entity for the UNICODE REPLACEMENT CHARACTER �, i.e. the Unicode character which is inserted when something went wrong.
This points to the original text having been screwed up by the originator. There's no way to know what that character was supposed to be before it screwed up and got replaced by �.

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.

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

latin characters showing in some parts of the page and not others

the page in question is Apple Amor
You can see that in the footer the spanish vowels seem to be showing properly , but in the slide down bar(header) they get messed up.
Any ideas why ?
Your page is encoded in ISO-8859-1. Wherever that header comes from, it is most likely encoded in UTF-8.
You would have to change the character set of your page to UTF-8 (that would probably have some consequences) or convert the incoming data from the header. I don't know where it's coming from, so it's hard to tell what the right method would be.
Mandatory basic reading on the issue: The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)
Your page source shows that you're using:
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
Note that the above tag is not well formed. Where is its closing character "/"? Content-Type should be between double quotes.
Add this tag to your page and test:
<html lang="es">
If that doesn't solve your problem try to change the charset tag to:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />