Bluehost 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:
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'
- 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"?>
- 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">
- 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.
- In your Bluehost 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
Recommended Help Content
Character sets in PHP
How to Set different character sets with PHP and HTML to display correctly.
WordPress not correctly displaying languages
WordPress will not correctly display languages other than English.
Protect Specific Pages With SSL
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.
Related Help Content
How To Find Your WordPress Database
This article explains how to find the database in use by a WordPress site.
Bluehost.com Form Character Limit
What is the character limit for the Bluehost.com form?
Change a MySQL Users Password
This article will explain how to change or reset the password for a MySQL user.
FTP Setup Using Dreamweaver 8
How do I setup Dreamweaver 8 for FTP?
Change Length of Hosting Plan
How do I change my contract length?
Modifying the Nameservers through other registrars
How do I Change My DNS?
What is the .htaccess file and where can I find more information?
Email Accounts - Change the Mailbox Size Quota
Where do I Change my Mailbox (Size) Quota? How do I Increase or Decrease Mailbox (Storage) Quota?