If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > inserting utf-8 data using ado recordset into ms sql

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-29-03, 08:30
behrang behrang is offline
Registered User
 
Join Date: Sep 2003
Posts: 1
inserting utf-8 data using ado recordset into ms sql

hi all,

My script gets input form a form with UTF-8 charset and wants to save the fields in database using adodb recordset and addnew method (NOT using SQL INSERT). i have charset=utf-8(client-side) and session.codepage=65001 in my asp file. it works fine with MS access but when it comes to MS SQL 7 or 2000, even i have nchar data type(unicode support) in my table , the ??? characters inserted in db instead of actual input. the cause is that MS SQL default encoding is not UTF-8,so MSDN recommends using "N" prefix with INSERT commands and it works. now the question is that is there any possible solution to ADODB recordset addnew or update methods to work with UTF-8 data in MS SQL enviroment?

tnx
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On