Wrox Programmer Forums
|
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components 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 October 12th, 2003, 12:06 AM
Registered User
 
Join Date: Sep 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to kochoo Send a message via Yahoo to kochoo
Default Wide Character String

Hi.

I am having a really weird behavior with a component in an ASP page.

In a simple ASP file, I instantiate the component, call a method that returns a wide character string (Chinese, Japanese double byte characters), and display the result in the page with <%= result %>. It displays the foreign characters fine with codepage set to 9xx. If I set the codepage to 1252, the characters becomes a bunch of ?'s.
So, this works as long as I set the correct codepage.

However, in another page, I instantiate the same component and do the same thing. However, most of the return string is replaced with a bunch of spaces. In this page, I set the codepage a few times (1252, 9xx) before I use the component. When I do use the component and try to display the returned result, the foreign characters are gone and there are spaces.

In anyways, why are foreign characters being replaced with spaces when I use the same codepage before using the component?

Thanks.





Similar Threads
Thread Thread Starter Forum Replies Last Post
trim a string to the first character jd_erd Access 2 May 6th, 2007 11:01 PM
Delete last a character in string dtho Excel VBA 27 December 7th, 2005 01:01 PM
Cutting a character from a string arnabghosh Classic ASP Basics 2 August 18th, 2005 07:44 AM
Search for Character in String Kaynor09 Excel VBA 2 April 24th, 2004 11:13 AM
How do I get rid of the last character in a string Lucy Classic ASP Professional 3 September 30th, 2003 05:33 AM





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