How do I change the default encoding to utf8MB4 for PHP server running Cpanel

How and where do I change the default encoding to utf8MB4 for PHP server running Cpanel?
lawrence_devAsked:
Who is Participating?
 
Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
I don't believe you can.  The only place I have seen that is in newer versions of MySQL.  Here is a bunch of info about the problems:  https://www.toptal.com/php/a-utf-8-primer-for-php-and-mysql
0
 
Ray PaseurConnect With a Mentor Commented:
utf8mb4 is a designation associated with MySQL.  My research yielded some information about this issue, which is encapsulated here.  I apologize in advance for the quality of this article in the E-E site.  E-E has had some problems getting this right.  You might want to use the links to the iconoun  site instead.
https://www.experts-exchange.com/articles/11880/Unicode-and-Character-Collisions.html

TL;DR: There are lots of things  to consider when you make the inevitable move from single-byte encoding to UTF-8.
0
 
lawrence_devAuthor Commented:
Issue not solved, but I will award points
0
 
lawrence_devAuthor Commented:
Thanks
0
 
Dave BaldwinFixer of ProblemsCommented:
Then what is the actual issue?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.