I am working on one project which uses multi-language content
Problem: Chinese characters not displaying in from database
Actually its working on local host with same database files. When i upload it on server charters are not supporting but same time working fine on local , i have tried all solutions related to database.
解决方案
Try this
header('Content-Type: text/html; charset=utf-8');
Also sometimes what needs to be explained is that the user is sending/expecting UTF-8 encoded data when connecting to the database, so MySQL thinks it's supposed to handle latin1 encoded data and converts it accordingly. Issue the command SET NAMES utf8 after connecting to the db
Please let me know if it still doesn't work