- From: <chris@globalsight.com>
- Date: Wed, 11 Jun 2003 11:58:23 -0700
- To: dragosg@p16.pub.ro, www-international@w3.org
I think SQLServer 2000 nvarchar data is actually stored as UCS2 so putting UTF8 data in there directly might be the problem. I had a similar problem before and had to convert the values from UTF8 to UCS2 before doing an insert or update a la N'...'. But then I was using Java and JDBC and this was a couple of years ago ... The SQLServer 2000 help does say this: 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. ... /Chris Chris Cowperthwait Sr. Technical Consultant Professional Services GlobalSight Corporation E: chris@globalsight.com P: (720) 622-4005 F: (720) 622-4001 M: (303) 249-2188 -----Original Message----- From: Dragos Georgita [mailto:dragosg@p16.pub.ro] Sent: Wednesday, June 11, 2003 07:00 To: www-international@w3.org Subject: Re: Updating UTF-8 data into SQL Server 2000 using ASP.net Hello! I have the same problem with multilanguage encoding. I am using ASP.NET on Win 2003 Server with Microsoft SQL Server 2000. The fields in the database are nvarchar and the inserting is done using the N'value' but it seems that data doesn't reach the database in the correct format. (I can see only ???? in the database). Of course all pages have meta directive for utf-8. I've done a simple ASP page that does the same thing. (gets some data from the input text and inserts it into the table, then displays the data taken from the table) ... it works fine, the text is displayed correct for asian languages. Furthermore, If I try to display this data from ASP.NET (keep in mind that data is inserted ok because ASP pages manage to display it correctly) the results are wrong. What seems to be the problem? Is that a problem with the driver for sql server in ASP.NET which changes the encodings? Mr. Rajan Nepal, as I see you had the same problem some time ago. If you have an answer for this problem, please help me. Thank you, Dragos
Received on Wednesday, 11 June 2003 15:07:49 UTC