Unix Technical Forum

Simplifiec Chinese Character

This is a discussion on Simplifiec Chinese Character within the MS SQL ODBC forums, part of the Microsoft SQL Server category; --> Hi, I have setted in SQL server 2000 the column collation as "Chinese_PRC_CI_AS" and the data type as "nvarchar". ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > MS SQL ODBC

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 08:10 PM
ElaineB
 
Posts: n/a
Default Simplifiec Chinese Character


Hi,

I have setted in SQL server 2000 the column collation as
"Chinese_PRC_CI_AS" and the data type as "nvarchar".

When I try to update the value with ASP using the "update tblitem set
..." statement, I got the data stored in sql server like " & #24191;&
#1999;" which is not chinese simplified character. However, the
characters display correctly as chinese simplified character when
viewing through web interface.

Would anyone tells how to make the "actual" chinese simplified character
stored in database and will there any problem to store the data as " &
#24191;& #1999;" . Thanks for any help!!

--
Posted via http://dbforums.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 08:10 PM
User
 
Posts: n/a
Default Re: Simplifiec Chinese Character

Since you did not specify how you actually tried to store the characters, it
is impossible to determine what is happening. One major point is whether
"&#24191" is actually being stored in the database (ie 7 chars) or your
client is only displaying it as such, and only 1 char was stored.

"&#24191" looks like an iso latin encoding of some Chinese character. A web
page using iso latin encoding may very well display the equivalent
simplified Chinese character. To avoid this, you should save your asp page
with utf-8 encoding and use the "<%@ CodePage=65001 %>" directive in the asp
page. Any strings in SQL statements should be prefaced with the N'....' so
that unicode is sent to SQL Server.


"ElaineB" <member32316@dbforums.com> wrote in message
news:3065051.1057118595@dbforums.com...
>
> Hi,
>
> I have setted in SQL server 2000 the column collation as
> "Chinese_PRC_CI_AS" and the data type as "nvarchar".
>
> When I try to update the value with ASP using the "update tblitem set
> .." statement, I got the data stored in sql server like " & #24191;&
> #1999;" which is not chinese simplified character. However, the
> characters display correctly as chinese simplified character when
> viewing through web interface.
>
> Would anyone tells how to make the "actual" chinese simplified character
> stored in database and will there any problem to store the data as " &
> #24191;& #1999;" . Thanks for any help!!
>
> --
> Posted via http://dbforums.com



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:44 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com