반응형

**[UTF-8 로 변경하고 싶을때, nvarchar로 강제 캐스팅 ]**
` ... cast(HKAM.AM_CategoryName  AS nvarchar) as AM_CategoryName ...`


** [언어셋 지정하여 필드값 받아오기, 언어셋이 다른 상황에 정렬시 사용될 수 있음]**
`select AM_CategoryName COLLATE Korean_wansung_CI_AS  from  HK_AdminMenu`
ex) https://msdn.microsoft.com/en-us/library/ms184391.aspx

**[codepage 지정]**
`Response.CharSet="euc-kr"`
`Ression.codepage="949"`
`Response.codepage="949"`
`Response.ContentType="text/html;charset=euc-kr"`

`Response.CharSet="ascii"`
`Session.codepage="0"`
`Response.codepage="0"`
`Response.ContentType="text/html;charset=euc-kr"`

`Response.CharSet="utf-8"`
`Session.codepage="65001"`
`Response.codepage="65001"`
`Response.ContentType="text/html;charset=utf-8"`

**[nvarchar 사용]**
http://enoya.tistory.com/4
ex) insert into tbl_est values(N'쀍쀍')

반응형

+ Recent posts