Why is sql server storing question mark characters instead of Japanese characters in NVarchar fields?

前端 未结 8 1520
春和景丽
春和景丽 2020-12-01 12:18

I\'m trying to store Japanese characters in nvarchar fields in my SQL Server 2000 database.

When I run an update statement like:

update blah 
set add         


        
8条回答
  •  天涯浪人
    2020-12-01 12:32

    SSMS will not display that correctly, you might see question marks or boxes

    paste the results into word and they should be in Japanese

    In the webpage you need to set the Content-Type, the code below will display Chinese Big5

     
    

    To verify the data you can't use ascii since ascii only can see the ascii character set

    run this

    select unicode(address),ascii(address) from blah where key_ID = 1

    Output should be the following (it only looks at the first character) 12473 63

提交回复
热议问题