Display unicode data incorrectly
Moderator: General Moderators
-
hoangvu.che
- Forum Newbie
- Posts: 19
- Joined: Thu Mar 22, 2007 9:54 pm
Display unicode data incorrectly
I have configured MySQL default encoding to utf-8.
Some unicode data is input by hand.
My php page loads the entered unicode data. However, the unicode characters are not displayed correctly although I have set the page encoding to utf-8 and save the php file in unicode format.
I dont know whether I need to configure anything else. Please help me.
thanks.
Some unicode data is input by hand.
My php page loads the entered unicode data. However, the unicode characters are not displayed correctly although I have set the page encoding to utf-8 and save the php file in unicode format.
I dont know whether I need to configure anything else. Please help me.
thanks.
-
hoangvu.che
- Forum Newbie
- Posts: 19
- Joined: Thu Mar 22, 2007 9:54 pm
I write the below line in the head section:
Code: Select all
<meta content="text/html; charset=UTF-8" http-equiv="content-type">-
hoangvu.che
- Forum Newbie
- Posts: 19
- Joined: Thu Mar 22, 2007 9:54 pm
-
hoangvu.che
- Forum Newbie
- Posts: 19
- Joined: Thu Mar 22, 2007 9:54 pm
I have added the following line at the beginning of my page
However, no change occurs 
Code: Select all
header('Content-Type: text/html; charset=UTF-8');-
hoangvu.che
- Forum Newbie
- Posts: 19
- Joined: Thu Mar 22, 2007 9:54 pm