Hello,

Does anyone has experienced storing chinesse character in php xampp. I have an elearning project for mandarine course and I unable to store chinesse character in php xampp.

I have found an opensource test maker and looks like I have modify it a little bit so that it could store chinesse character in php xampp also at the same time it should be able to print out to web browser.

Thanks before,
Davy

Member Avatar

diafol

Are you talking about storing it in a DB and then retrieving it or just displaying it straight from php/html source?

Your DB profile:

charset: utf8mb4, collation: utf8mb4_unicode_ci

Your page setup:

header("Content-Type: text/html; charset=utf-8");

Put this close to the top of your page so that it is run before any read/write of php/mysql.

<meta charset="utf-8">

Can still be used in the <head> area.

I think that will work. You haven't included any code, so we can't comment on where you're going wrong. Help us to help you.

http://www.daniweb.com/web-development/php/threads/435023/read-this-before-posting-a-question