Knowledgebase & Downloads
The knowledgebase provides documentation written by our team. Please select a category or search for answers.
Articles
How do I get different character sets to display in HTML?
Many web browsers display Western Character Encoding (ISO-8859-1) by default. This means that pages with text in a non Western alphabet, like Cyrillic or Arabic, will often look garbled. Unicode, on the other hand, is capable of displaying several alphabets; the standard Unicode encoding is UTF-8. Not all character sets will be correctly rendered with this encoding format, but most will. You can find specific information about which character encoding will display www.w3.org/International/O-charset.en.php. <?xml encoding="UTF-8"?> <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
To ensure that your web page displays correctly across different web browsers and platforms (if it's not in English), you should take the following steps:
- In your HTML document, insert an XML line which specifies your character encoding under your Doc Type Declaration (DTD). If you're using UTF-8, then the line will look like this:
- In your JVMHost account, add an .htaccess file in the directory where your web pages using non Western encoding will be. If your entire site uses different characters, then you can put your .htaccess file in public_html. Inside of the .htaccess file, add this line: AddDefaultCharset Off
- © 2016-2024 JVMHost.com All rights are reserved.