p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

Free Code from Wrox
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other programmers’ questions, win occasional prizes given to our best members, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 18th, 2009, 06:08 AM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old June 18th, 2009, 04:14 PM
Friend of Wrox
Points: 4,922, Level: 29
Points: 4,922, Level: 29 Points: 4,922, Level: 29 Points: 4,922, Level: 29
Activity: 76%
Activity: 76% Activity: 76% Activity: 76%
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,354
Thanks: 3
Thanked 72 Times in 71 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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old June 19th, 2009, 06:52 AM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
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

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

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 05:16 AM
CODEPAGE="1252" crmpicco Javascript 2 January 27th, 2005 10:22 AM
Codepage kochoo Classic ASP Basics 1 April 24th, 2004 02:28 AM
Codepage Problem? birdcage Classic ASP XML 2 October 21st, 2003 07:10 AM



All times are GMT -4. The time now is 11:15 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© 2010 Wiley Publishing, Inc