I have two servers running the following Versions of PHP and MySQL respectively
Server 1:
PHP version 5.2.7
MySQL: 5.5.36
Server 2:
PHP version 5.4.23
MySQL: 5.5.36
As the MySQL version is updated, MySQL can handle utf8mb4_general_ci
So in case of server 2 all special characters like ','' etc inserts as it is in Database with no escape slashes.
But where as coming to server 1
The special characters are not inserting as it is, It shows the following way It\'s instead of It's
So I doubt is PHP version making the difference?
I am using Codeigniter configured equally on both servers.