6
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

posted at

SQL Serverで環境依存文字が文字化けしないようにする

環境依存文字(㉑など)が文字化けしないようにするには
下記条件が必要

1)データ型はunicode型(nvarchar,nchar等)とする
2)INSERT時にNプレフィックスをつける
3)照合順序はJapanese_XJIS_100_CI_AS_SCとする

INSERT INTO tablename
(column1)
values
(N'㉑' collate Japanese_XJIS_100_CI_AS_SC)

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
6
Help us understand the problem. What are the problem?