Unicode problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dwnthk
Forum Newbie
Posts: 13
Joined: Mon Oct 08, 2007 5:55 am

Unicode problem

Post by dwnthk »

Hi guys,

I know this has been asked 1000+ times, but I just can't find my answer from the search here. It seems I have done everything the others were told.

So, please help :oops:

I am newby and trying to show some data from the mssql by using PHP. In the tables of the mssql, there are some columns containing chinese charaters with the datatype nvarchar(). And the web server is Apache 5.2.4.

When I show the data on the IE, the chinese charaters become '????'.

I have done:

1) Set the "AddDefaultCharset UTF-8" in the apache conf. file
2) Added default_charset = "UTF-8" in the php.ini
3) Added <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
4) Added header('Content-Type: text/html; charset=UTF-8')
5) Used CONVERT(nvarchar(xx),xx) in the select statement


What else I am missing? And what else should I try? :?:

dw
Post Reply