This site utilizes JavaScript to function correctly. Looks like it's disabled on your browser. Please enable it for your best experience.

For instructions on enabling JavaScript, click here

Skip to main content

Just Host Web Hosting Help

Character sets 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 at http://www.w3.org/International/O-charset.en.php

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:

  1. In your PHP 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: <><?xml encoding="UTF-8"?>
  2. When coding your HTML, be sure to include a META tag in your header specifying the character set. If you're going to encode your page in Unicode, specify UTF-8 as your character set in the META tag. If you're going to use UTF-8 encoding, your META tag will look like this:
    <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
  3. When saving your HTML, be sure that the character encoding is set to whatever you've specified it to be. If you choose UTF-8, then you will need to save your page in that type of encoding.
  4. In your Just Host 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
Note: If you are using 'default.html' as the index or home page, our Apache configuration overrides the content-type for this file and sets it to ISO-8859-1, no matter what. To fix this issue, you will need to rename 'default.html' to 'index.html' or 'index.htm'
Knowledgebase Article 221,510 views bookmark tags: arabic change character chinese html japanese language languages sets


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

How to Set different character sets with PHP and HTML to display correctly.
Knowledgebase Article 214,858 views tags: arabic character chinese collation japanese language languages mysql php phpmyadmin sets

WordPress will not correctly display languages other than English.
Knowledgebase Article 226,740 views tags: language wordpress

This article will show a way to protect specific pages of your website with SSL. This may have benefits for SEO and can be used on pages that contain forms, shopping carts or any other page where users might enter sensitive information.
Knowledgebase Article 120,826 views tags: htaccess pages specific ssl

Related Help Content

This article explains how to find the database in use by a WordPress site.
Knowledgebase Article 329,560 views tags: database find wordpress

What is the character limit for the Justhost.com form?
Knowledgebase Article 238,844 views tags: cgi character form limit script

This article will explain how to change or reset the password for a MySQL user.
Knowledgebase Article 154,713 views tags: change mysql password reset user

How do I setup Dreamweaver 8 for FTP?
Knowledgebase Article 256,386 views tags: client configure dream file information party program protocol set setup steps transfer

How do I change my contract length?
Knowledgebase Article 313,052 views tags: change contract hosting length package payment

How do I Change My DNS?
Knowledgebase Article 498,912 views tags: change delegate dns modify

What is the .htaccess file and where can I find more information?
Knowledgebase Article 2,082,156 views tags: htaccess tips tricks

Where do I Change my Mailbox (Size) Quota? How do I Increase or Decrease Mailbox (Storage) Quota?
Knowledgebase Article 428,057 views tags: account change decrease email increase mailbox quota size

** Google ad credits are only available to customers in the United States, Canada, and the United Kingdom at this time.

¹ VAT (Value Added Tax) is not included in our advertised price and will be charged separately and itemized on invoices and billing information. Standard VAT rates based on EU Member State regulations may apply. Learn more.