In our previous article, we gave an introduction to character encoding and why UTF-8 is considered the best format. We also discussed how different character encodings are not usually compatible with each other. In this article, we will cover what to look for in the character encoding check that appears when editing a file within the cPanel File Manager.

  1. In the cPanel File Manager, if you wish to edit a file, you have two editors to choose from: the Code Editor and the Text Editor (Edit). Once you have selected the file you wish to edit, choose either option from the File Manager menu (or right click the file and choose one of the editors).

    encoding-check-editor

  2. When you open a file with either the Code Editor or Text Editor in the cPanel File Manager, an encoding check is performed by default. Normally, this encoding check will correctly detect the character encoding of a file.

    encoding-check-code-editor

  3. Of course, it doesn't hurt to double check the encoding. If you know that your file is in a different encoding than what is shown by the check, you can choose the correct encoding from the drop down menu.

    encoding-drop-down

  4. Click Edit to finish opening your file.
  5. If you accidentally disable the encoding check and would like to re-enable it, you can do so in the File Manager Settings. At the top left of the page, click the Settings link next to the File Manager heading.

    file-mgr-settings

  6. In the Preferences pop up window, deselect the box next to Disable Character Encoding Verification Dialogs and click the Save button.

    re-enable-encoding-check

In this article we have focused on character encoding for files. Character encoding can also apply to databases. If you have database tables that you need to convert to a different character set and collation, please see our article on converting a database.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Did you find this article helpful?

Comments

n/a Points
2020-02-20 8:31 am

Hey, I'm noticing that cPanel File Manager is editing my PHP code when I first open the file. One example is that it is removing this text from my code:

<meta charset="UTF-8">

The problem is that this text is part of an HTML email that my code is generating and sending, so I don't want it removed. 

Please advise, thanks!

Staff
107 Points
2020-02-21 12:20 am
Hi Matt,

I recommend reaching out to our live support so they can work with you to resolve your issue. They will be able to take a closer look at your account and work towards a solution.

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}