Re: UTF-8 encoding in AJAX web application.
- From: "Allan Ebdrup" <ebdrup@xxxxxxxxxxxxxxx>
- Date: Wed, 21 Mar 2007 09:40:04 +0100
"Jon Skeet [C# MVP]" <skeet@xxxxxxxxx> wrote in message
news:MPG.206a3c6dc027898998d9d0@xxxxxxxxxxxxxxxxxxxxxxx
Allan Ebdrup <ebdrup@xxxxxxxxxxxxxxx> wrote:
I tried with a "ntext" and that works for saving UTF-8 chars as far as
I've
tested. But I should really convert from UTF-8 to UCS-2 before saving
right?
and back when loading.
No - the driver will do that for you.
Is this done by detecting the UFT8 preamble? And the the driver converts to
UCS-2? And if so how come the result is still in UTF-8 when I retrieve the
data again?
Or is there no conversion?
Why is it important that MSSQL only supports UCS-2 unicode if everything
works fine with UTF-8?
I can see that everything works fine when storing a UTF-8 string in an ntext
column, and when I query the data in queryanalyzer the string is displayed
correctly in the result set, how can this be if MSSQL only supports UCS-2
encoding?
How is the string stored? in UTF-8 or UCS-2?
Sorry for all the questions, I'm just tryng to understand what's going on.
Kind Regards,
Allan Ebdrup
.
- Follow-Ups:
- 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.
- 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]
- Re: UTF-8 encoding in AJAX web application.
- From: Allan Ebdrup
- Re: UTF-8 encoding in AJAX web application.
- From: Allan Ebdrup
- Re: UTF-8 encoding in AJAX web application.
- From: Allan Ebdrup
- Re: UTF-8 encoding in AJAX web application.
- From: Jon Skeet [C# MVP]
- UTF-8 encoding in AJAX web application.
- Prev by Date: How to invoke external application through ASP.Net web application
- Next by Date: Re: Send SMS from .net 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
|