Re: UTF-8 encoding in AJAX web application.
- From: "Allan Ebdrup" <ebdrup@xxxxxxxxxxxxxxx>
- Date: Tue, 20 Mar 2007 11:08:47 +0100
"Steven Cheng[MSFT]" <stcheng@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:mmHNj7paHHA.4088@xxxxxxxxxxxxxxxxxxxxxxxxx
In addition, for SQL Server (7.0 or 2000) unicode datatype, it is stored
in
UCS-2 charset (no matter the data is originally encoded in UTF-8, UTF-16
or....). Here is a good MSDN reference introducing the international
features in SQL Server 2000
http://msdn2.microsoft.com/en-us/library/aa902644(SQL.80).aspx
The only problem with saving the text as binary data (image) is that I can't
search the text.
The data was originally saved in a "text" column, there is no "ntext" all
you can do is set the collation.
I tried to set the collation to UCS-2 but couldn't find it in the list of
possible collations, what collation should I use to be able to use UCS-2?
I was thinking I could convert my UTF-8 encoded string to UCS-2 and save it
in the database.
Then I could convert from UCS-2 to UTF-8 when fetching the string from the
database.
How do I convert a string from UTF-8 to UCS-2 and back?
Kind Regards,
Allan Ebdrup
.
- Follow-Ups:
- Re: UTF-8 encoding in AJAX web application.
- From: Allan Ebdrup
- Re: UTF-8 encoding in AJAX web application.
- References:
- UTF-8 encoding in AJAX web application.
- From: Allan Ebdrup
- Re: UTF-8 encoding in AJAX web application.
- From: Jon Skeet [C# MVP]
- Re: UTF-8 encoding in AJAX web application.
- From: Steven Cheng[MSFT]
- Re: UTF-8 encoding in AJAX web application.
- From: Allan Ebdrup
- Re: UTF-8 encoding in AJAX web application.
- From: Steven Cheng[MSFT]
- UTF-8 encoding in AJAX web application.
- Prev by Date: Re: Are we expected to hand code XAML Layouts
- Next by Date: Re: UTF-8 encoding in AJAX web application.
- Previous by thread: Re: UTF-8 encoding in AJAX web application.
- Next by thread: Re: UTF-8 encoding in AJAX web application.
- Index(es):
Relevant Pages
|