UTF-8 or UTF-16 or UTF-32 or UCS-2

后端 未结 6 1880
陌清茗
陌清茗 2020-12-03 08:53

I am designing a new CMS but want to design it to fit all my future needs like Multilingual content so i was thinking Unicode (UTF-8) is the best solution

But with

6条回答
  •  青春惊慌失措
    2020-12-03 09:21

    Alas I think the problem is (as he states in the beginning) that he has SQL Server 2005 which if I am correct still uses UCS2 as it's encoding for N-datatypes (NVARCHAR and co)

    He might have to live with the limitation that brings or upgrade to a newer version of SQL Server. Typically what you will see if you start dumping UTF-16 i.e. standard unicode as used in .NET now is that as stated some characters will be lost and replaced with ? marks in the database tables.

提交回复
热议问题