Solved

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

Posted on 2016-08-18
5
147 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 110

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

739 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