Re: UNICODE and Encoding
From: Bart Duncan [MSFT] (bartd_at_online.microsoft.com)
Date: 03/24/04
- Next message: Yaheya Quazi: "Encrypt function..."
- Previous message: Adam Machanic: "Re: Running Sum field in select query"
- In reply to: Stefan Delmarco [MSFT]: "Re: UNICODE and Encoding"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 24 Mar 2004 00:34:58 GMT
Note that UCS-2 is a proper subset of UTF-16 (it's essentially the subset
of UTF-16 that doesn't involve surrogates). Also note that any UTF-16
character, including surrogates, can be stored and retrieved intact in
SQL Server. Don't expect intelligent sorting or comparisons of
surrogates, though -- SQL doesn't know the "meaning" of Unicode
characters that take two 16-bit code units to store.
Bart
------------
Bart Duncan
Microsoft SQL Server Support
Please reply to the newsgroup only - thanks.
This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
From: "Stefan Delmarco [MSFT]" <StefanDe@online.microsoft.com>
References: <11fb401c410f5$ff4db090$a301280a@phx.gbl>
Subject: Re: UNICODE and Encoding
Date: Tue, 23 Mar 2004 17:44:03 -0000
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <Oy31v5PEEHA.2700@tk2msftngp13.phx.gbl>
Newsgroups: microsoft.public.sqlserver.programming
NNTP-Posting-Host: tide136.microsoft.com 213.199.144.167
Path:
cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP
08.phx.gbl!tk2msftngp13.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.sqlserver.programming:433036
X-Tomcat-NG: microsoft.public.sqlserver.programming
Neither, From BOL:
nchar and nvarchar
Character data types that are either fixed-length (nchar) or
variable-length
(nvarchar) Unicode data and use the UNICODE UCS-2 character set.
Cheers,
Stefan
-- This posting is provided "AS IS" with no warranties, and confers no rights. "KP" <anonymous@discussions.microsoft.com> wrote in message news:11fb401c410f5$ff4db090$a301280a@phx.gbl... > What is the default encoding for UNICODE characters in SQL > Server, UTF-8 or UTF-16?
- Next message: Yaheya Quazi: "Encrypt function..."
- Previous message: Adam Machanic: "Re: Running Sum field in select query"
- In reply to: Stefan Delmarco [MSFT]: "Re: UNICODE and Encoding"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|