I'm trying to make some text in czech, but I can't success :-/
Web is http://esn.zcu.cz/world/
formate of the file and in meta is iso-8859-2 which should allow czech chars
Your webpage has <meta charset="charset=utf-8"> and yet it isn't in UTF-8. Firefox interpreted it as ISO-8859-1, which makes vowels like éóí look okay, but then č you typed is being displayed as è.
Solution? You can fix the meta tag, but seriously, it's 21st century, you really should use UTF-8 everywhere. Convert the page to UTF-8, remove <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"> and you'll be fine.
Note: your HTTP server returns this: text/html; charset=ISO-8859-1
Related
In the website I'm developing there are several european characters such as ã or ç. I was told to change from UTF-8 to ISO-8859-1, but ISO doesn't seem to code these characters correctly, while UTF-8 marks several others as question marks. Right now, the tag on my header is this one:
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
Use only UTF-8 if you want to avoid problems, the ISO encodings will bring you nothing good.
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 �.
So this is my page: http://www.mysecretathens.gr/kulte_test/coming_soon.html and the greek fonts wont display, why is that?
I use Open Sans, greek script and I've put an html iso tag in the beginning, but still no Greek characters.
<html lang="el">
You are not telling your page to use UTF-8. The best way is to send an HTTP header.
Content-Type: text/html; charset=utf-8
The alternative is to let the webpage say what its encoding is
<meta charset='utf-8'>
Note that Chrome correctly guesses it. The first way is preferred since it keeps your application more DRY since you already have to choose an encoding on the server.
I'm trying to set the encoding of some files in PHP to ISO-8859-1. I tried using this:
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=ISO-8859-1">`
but it still isn't working. What can I do? Thank you.
You should be outputting this as a real HTTP header. <meta> elements are not a good substitute.
header('Content-Type: text/html;charset=iso8859-1');
You should ensure that the encoding of the files is actually ISO 8859-1 - all this does is tell the browser that the resource is in that encoding, it doesn't actually transcode or anything.
I have a Unicode problem... I´ve done this before but for now, I cannot understand
why the Icelandic letters don´t show up - I have those question marks again
Here is the url (very plain and short html5)
http://nicejob.is/new/
Everything I Google says: use the <meta charset="utf-8"> as I do.
Any suggestions?
Your page is already viewed as UTF-8. But your source code is not saved as UTF-8.
Please change the encoding of your source code file to UTF-8.
Not all browsers support HTML5-way tags yet
here you can see table of compability
Try this instead:
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
I can see a couple of issues.
The META should look like this:
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
The <html> specified lang="en" which might be prone to confusing some browsers.
When I view the HTML from the browser, the question marks are encoded as 0xEF 0xBF 0xBD, which is the UTF-8 encoding for the byte order mark or BOM, aka U+FEFF. So, for whatever reason, the HTML is not transmitted as sensible UTF-8 (though it does seem to be valid UTF-8).
Probably you are using some text editor like notepad++,
and you didn't set up encoding to UTF-8 in that text editor.
What you have to do is to save the file with utf-8 encoding by using Notepad (the attached one with Windows).
Steps:
Save as ..
In the below options ... you will find encoding option choose UTF-8 ...
And save the file ...
Then add the line <meta charset="UTF-8" /> inside your file ...
And it will work.