Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 29th, 2003, 07:12 AM
Registered User
 
Join Date: Sep 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default inserting utf-8 data using ado recordset to 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





Similar Threads
Thread Thread Starter Forum Replies Last Post
inserting images in ms sql server using query anal connect2sandep SQL Server 2000 2 July 24th, 2005 04:41 PM
Inserting data into MS Acess "Urgent Help needed" todeepu Access 2 May 10th, 2004 09:24 AM
ADO Recordset and SQL Statements Dataman Access VBA 4 March 21st, 2004 06:19 PM
ADO/SQL Server RecordSet and the OrderBy Property Dataman Access 3 February 9th, 2004 11:11 AM
recordset ms sql staafoz Classic ASP Databases 2 October 31st, 2003 02:05 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.