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

前端 未结 8 1515
春和景丽
春和景丽 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:44

    The code is absolutely fine. You can insert an unicode string with a prefix N into a field declared as NVARCHAR. So can you check if Address is a NVARCHAR column. Tested the below code in SQL Server 2008R2 and it worked.

    update blah 
    set address = N'スタンダードチャ'
    where key_ID = 1
    

    enter image description here

提交回复
热议问题