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 PHP

There is a character encoding setting inside of your php.ini file. By default, this is set to the standard Latin encoding (ISO-8859). If you would like to encode your page with different characters, like Arabic or Hindi, you will need to change this.

Most character sets will display correctly with UTF-8 encoding. If you're using an Asian character set, you may need to select a different encoding standard. To find out specific information about which character encoding will display your characters correctly Click Here.

You can find your php.ini file in this directory:
    /public_html/php.ini
To change the character encoding in your php.ini file, find the following line and input your preferred character encoding. In the example below, UTF-8 is the character set.
    default_charset = "UTF-8"
Note: By default, the default_charset option is commented out. Be sure to delete the leading semi-colon so it does not look like this:

    ;default_charset = "UTF-8"
Knowledgebase Article 214,016 views bookmark tags: arabic character chinese collation japanese language languages mysql php phpmyadmin sets


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

Instructions to set different character sets in HTML. Note: Not all character sets will be correctly rendered with this encoding format, but most will. You can find specific information about which ch
Knowledgebase Article 220,434 views tags: arabic change character chinese html japanese language languages sets

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

If suddenly when you go to your page, you get nothing on the page. You can still get HTML to display, just not PHP. To serve HTML pages to browsers, we don't associate the Apache processes with your 2
Knowledgebase Article 189,285 views tags: blank page php

Related Help Content

A step by step guide on how to manipulate data in your mySQL tables using phpMyAdmin
Knowledgebase Article 197,561 views tags: databases mysql phpmyadmin

A repository of information on how you can manage your database by using the phpMyAdmin interface.
Knowledgebase Article 373,997 views tags: commands database mysql phpmyadmin

Guidance on adding tables to your mySQL database in phpMyAdmin
Knowledgebase Article 113,200 views tags: mysql phpmyadmin

How do I import a backup of my database (.sql file) using phpMyAdmin?
Knowledgebase Article 779,870 views tags: database mysql phpmyadmin

How to Restore your MySQL Database?
Knowledgebase Article 382,309 views tags: admin database mysql php phpmyadmin restore

A tutorial on how to perminately delete columns from your mySQL database using phpMyAdmin
Knowledgebase Article 187,068 views tags: Plesk cpanel databases mysql phpmyadmin

A guide to duplicating a MySQL database using phpMyAdmin
Knowledgebase Article 240,757 views tags: databases mysql phpmyadmin

A guide on performing a standard SQL query using the phpMyAdmin interface
Knowledgebase Article 189,789 views tags: databases mysql phpmyadmin

** 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.