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 9th, 2003, 02:07 PM
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 Return String is Different

I have a component with a method that returns a Unicode string. Basically, the component returns BSTR.

I call the method in a VBScript file (test.vbs) and save the returned string using the FileSyetemObject.OpenTextFile() with -1 for unicode. I open the file in notepad, the unicode characters are preserved and show as little squares. I can view the file which contains double characters fine in Internet Browser.

If I do the same thing in a ASP page, most of the double byte characters are gone and replaced with spaces.

Does anyone have a clue?
 
Old October 10th, 2003, 02:00 PM
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

With correction:

I have a component with a method that returns a wide character string. Basically, the component returns BSTR.

I call the method in a VBScript file (test.vbs) and save the returned string using the FileSyetemObject.OpenTextFile() with -1 for unicode file. I open the file in notepad, the characters are preserved and show as little squares. I can view the file which contains double characters fine in Internet Browser.

If I do the same thing in a ASP page, most of the characters are gone and replaced with spaces.

Does anyone have a clue?
 
Old October 19th, 2003, 05:41 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

hi,

if possible send the part of code and i could help.



Ahmed Ali
Software Developer





Similar Threads
Thread Thread Starter Forum Replies Last Post
Return an XML string from aspx page webnet ASP.NET 2.0 Professional 2 November 23rd, 2007 05:56 AM
How to return a string to it's exact original (len EDCH123 Java Databases 0 January 25th, 2006 04:06 PM
how to return string value with quotes (single or tllcll BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 3 November 10th, 2005 01:57 PM
Return ASCII values for a given string sal C# 1 May 19th, 2005 03:59 PM
MySQL return a String instead of an INT peg110 PHP Databases 2 December 2nd, 2004 01:23 PM





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