0
我有一些我認爲是Unicode的數據,並且看到將它存儲到我的數據庫列中時會發生什麼VARCHAR(MAX)
數據類型。SQL Server如何將這些Unicode字符存儲到VARCHAR(MAX)而不是NVARCHAR(MAX)的列中
而這裏的來源,從哪個是UTF-8的文件......
looking for that ‘X’ and • 3 large bedrooms with 2 ensuites and • Main bedroom with ensuite & surround with plantation shutters`
,並使用Visual Studio調試器:
=>所以2個撇號和2個子彈。
我以爲SQL Server只能存儲Unicode,如果該列的類型是NVARCHAR
?
我假設我的源數據不統一,因此,我完全在這一切的Unicode/UTF-8的東西:(吸
它看起來像十六進制代碼,而不是unicode。你可以查看http://www.ascii.cl/htmlcodes.htm。 unicode通常表示爲?在varchar colums中。還請檢查https://social.msdn.microsoft.com/Forums/sqlserver/en-US/f7ed0f1a-14e2-4c7d-ab0a-405e48f8b7e1/inserting-unicode-text-into-varchar-column-?forum=transactsql – Yeou