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

Re: Representing EBCDIC code 37 in xslt

Subject: Re: Representing EBCDIC code 37 in xslt
From: a kusa <akusa8@xxxxxxxxx>
Date: Mon, 30 Dec 2013 14:59:04 -0600
Re:  Representing EBCDIC code 37 in xslt
Thanks Ivan. That is where this question started, what output encoding
can I use to preserve these EBCDIC characters?

On Mon, Dec 30, 2013 at 2:12 PM, Ivan Shmakov <oneingray@xxxxxxxxx> wrote:
>>>>>> a kusa <akusa8@xxxxxxxxx> writes:
> []
>  > Well, I have <xsl:output encoding> set to utf-8 right now.  If I set
>  > it to EBCDIC, then the rest of the content in the XML converts to
>  > gibberish.
>         Which is expected, if you view an EBCDIC-encoded XML file with
>         an application that assumes ASCII-based encoding.  Try to upload
>         the resulting file using FTP /binary/ mode to the mainframe and
>         check if the file is still unreadable /there./
>         (Alternatively, or perhaps complementarily, use an
>         EBCDIC-capable application to view the resulting file locally.)
>  > Thats what I meant.
>  > I only need the special characters -esp. Latin-1 characters like the
>  > plusminus sign, to convert to the right EBCDIC code.
>  > I have a java program that FTPs the file; I believe the default is
>  > ASCII.
>         There /may/ be a problem if /either/ this program or the FTP
>         server assume that the input is ASCII, because the characters
>         such as PLUS-MINUS SIGN are /not/ representable in ASCII.
>         One solution is to configure either the FTP client or FTP server
>         to /correctly/ convert UTF-8 to EBCDIC.  The other is to
>         configure the XSLT implementation (with <xsl:output />) to
>         output EBCDIC, and send the result to the target host /without/
>         any encoding conversion (i. e., using FTP binary mode.)
> --
> FSF associate member #7257

Current Thread


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.
First Name
Last Name
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.