搞定了,其实数据库的字段设为unicode就可以了,造成乱码的原因是php连sqlserver的dll有问题
(The extension requires the MS SQL Client Tools to be installed on the system where PHP is installed. The Client Tools can be installed from the MS SQL Server CD or by copying ntwdblib.dll from \winnt\system32 on the server to \winnt\system32 on the PHP box.这段话的意思是说Php使用SQL Server是用的ntwdblib.dll 这个这个DLL,而这个Dll,是用于连接SqlServer 6.5的客户端的,据我所知,SQLServer 6.5还不支持Unicode,这就是问题的所在。经过在网上一番查找,终于找到了个免费的新的Php连接数据库的工具,他使用ADO连接数据库的(看上去好像是这样的),这个软件就是ODBTP,可以从http://odbtp.sourceforge.net/这里下载到。 摘自http://borland.mblogger.cn/nothingdone/posts/9036.aspx)
如果能给分的话,我愿意给他100分!!! :)