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 June 18th, 2009, 05:08 AM
Registered User
 
Join Date: Jun 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default codepage and UTF-8 on one page

Hi guys,
I've got utf-8 data from one table and codepage from another table, and I need to display both on one page.
Any ideas?

Last edited by Marianne; November 19th, 2009 at 06:58 AM..
 
Old June 18th, 2009, 03:14 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

I dunno if it works with data from SQL Server, but you *could* try this:
Code:
Session.CodePage = 1253 ' or whatever
someVariable = RS("someFieldInCP1253")
Session.CodePage = 65001
anotherVariable = RS("someFieldInUnicode")
...
Used to work, 10 years ago, with MySQL database (and Access, I think...before Access went all Unicode). The recordset holds (held?) the data in raw database form and the assignment to the variable used the appropriate MBCS conversion, if needed.

A stab in the dark, and ancient technique. Good luck.
 
Old June 19th, 2009, 05:52 AM
Registered User
 
Join Date: Jun 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Old Pendant, I will give it a go next time me and CodePage will cross paths





Similar Threads
Thread Thread Starter Forum Replies Last Post
Codepage 1252 (Western) Issue? tclotworthy XSLT 5 March 2nd, 2007 01:43 PM
Codepage minhtri Classic ASP Professional 1 April 20th, 2005 04:16 AM
CODEPAGE="1252" crmpicco Javascript 2 January 27th, 2005 10:22 AM
Codepage kochoo Classic ASP Basics 1 April 24th, 2004 01:28 AM
Codepage Problem? birdcage Classic ASP XML 2 October 21st, 2003 06:10 AM





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