Page 1 of 1

Unicode problem

Posted: Tue Oct 09, 2007 2:38 am
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