Hi...wwh999,谢谢回复,我在插值时已经使用了N'',但结果还是一样的乱码

解决方案 »

  1.   

    这个问题,我在做网页的时候,也遇到过,之前也有人提过这样的问题,没有得出结果~为这个我还在出乱码的机器上试过,从IE-查看-编码那里,改了一下,改成GB2312或是unicode试了一下,就没有问题了,这个问题,确实很烦人的,如果有什么办法解决了,LZ不要忘记共享啊~
      

  2.   

    run sp_help "your table" to get the collation setting for the column.  In order to store chinese correctly, you should set the collation be:
        Chinese_PRC_CI_AS
     or Chinese_Stoke_CI_ASchar/varchar data type is ANSI char which must define a code page. If you set the collation be SQL_Latin1_General_CP_CI_AS, it can only store latin characters. In order to store chinese character in a char column, you have to set the collation be  Chinese_PRC_CI_AS  or Chinese_Stoke_CI_AS which has a chinese code page defined.nchar/nvarchar collumn is different, you can store any Unicode character include enlish, chinese, japanese in one column.In term of input chinese character, the character constant will use database's collation. Thus, if the database's collation is not chinese collation, there is no way to input chinese char/varchar data, such as  
    '中文' will be treated as '??'.  But for nvarchar/ncar, you can input it
    on any collation. such as  N'中文' will be treated as two unicode chars