I've setup VestaCP on a 2 identical Debian 7 Servers. Strangers on server one the special characters display properly out of the box, but on the Primary server, the special characters are not being rendered correctly, they give the black "?" instead. Both server's are exact same software and config. writes here..
I've tried setting
/etc/apache2/conf.d/charset
/home/admin/conf/web/apache2.conf
/etc/apache2/apache2.conf
in .htaccess
AddDefaultCharset UTF-8
AddCharset UTF-8 .html
but it doesn't resolve at all. Please help me.
Interestingly, the pages (quite and old site) use
in their header.
Please check page here : http://168.235.66.20:8080/
The data is encoded using Windows-1215 not UTF-8. You should convert it to UTF-8.
You should change in your HTML :
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
With :
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Related
I have used the following code in my head tag.
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Admin Panel</title>
</head>
I have characters of other language which is supported by UTF-8 encoding in my web page. But when i save my html file it showed me error The document's current encoding can not correctly save all of the characters within the document. You may want to change to UTF-8 or an encoding that supports the special characters in this document.
I have already using UTF-8. How to fix this?
You are not using UTF-8. You have just included some markup which tells the browser you are using UTF-8.
That error message sounds like it is coming from your editor. You need to configure your editor to save in UTF-8.
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
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.
I've got a problem with html encoding. I work on PSPad. I set utf-8 as charset in my files and utf-8 as a file format and it look fine on localhost but doesn't on a server.
When i change file format to iso it works on a server but doesn't on localhost and when i close PSPad and reopen the file it totaly breaks some of the characters.
Do u have any solution? It so annoying! :)
thanks
K.
Make sure that the foreign server sends a charset declaration as well. What server software do you use? In Apache you could achieve it by adding a .htaccess file with the following content:
AddCharset utf-8 .html
Also make sure that you add a
<meta charset="utf-8">
declaration (HTML5) or a
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
To the HTML file header.
Edit: corrected typos
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.