[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Output Arrow Symbols - only 2 of 3 methods work ??

Subject: Re: Output Arrow Symbols - only 2 of 3 methods work ??
From: Mike Brown <mike@xxxxxxxx>
Date: Tue, 6 Aug 2002 12:39:25 -0600 (MDT)
arrow symbols
jdgarrett@xxxxxxxxxx wrote:
> Dim psFile As String
> psFile = App.Path & "\result.htm"
> pnFileNum = FreeFile()
> Open psFile For Append Access Write As pnFileNum

I don't know VB but I am guessing that your problem has to do with how you you
are sending psOutput, which is probably a Unicode (UTF-16) string, to a file
on disk. The raw UTF-16 data is probably not being written directly. I bet the
16-bit characters are being serialized in an 8-bit encoding like windows-1252
(cp1252), and characters outside of the range of that encoding are being
replaced with "?", as is the generally accepted practice when a process
doesn't know that it's writing markup as opposed to just some arbitrary 
string. (If it knew it was writing markup, it would emit "&#8592;" in the
8-bit encoding).

I would check your VB docs for writing strings and files. Surely there will be 
something about encoding defaults and how to override them.

   - Mike
____________________________________________________________________________
  mike j. brown                   |  xml/xslt: http://skew.org/xml/
  denver/boulder, colorado, usa   |  resume: http://skew.org/~mike/resume/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.