Solved

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

Posted on 2016-08-18
5
120 Views
Last Modified: 2016-08-18
How and where do I change the default encoding to utf8MB4 for PHP server running Cpanel?
0
Comment
Question by:lawrence_dev
  • 2
  • 2
5 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 250 total points
ID: 41761609
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
 
LVL 109

Assisted Solution

by:Ray Paseur
Ray Paseur earned 250 total points
ID: 41761622
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
 

Author Comment

by:lawrence_dev
ID: 41761675
Issue not solved, but I will award points
0
 

Author Comment

by:lawrence_dev
ID: 41761680
Thanks
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 41761690
Then what is the actual issue?
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question