For what its worth I wrote a fairly comprehensive codepage conversion filter for IBM's internal Xagent email gateway that can go back/forth between scores of single and double byte codepages, including utf8. The basic approach I used was to take the source codepage,convert to unicode and then from unicode to the target. Tables for this are readily available from the IBM Globalization CoC. I used to have my own Rexx code to translate utf8 to utf16, but dropped that in favor of the "undocumented" utf stage the Piper was so kind to provide. So basically you just need to convert utf8 to utf16 and then use the Unicode to EBCDIC table appropriate to your situation. -- bc
On Tue, Nov 20, 2012 at 10:51 AM, Paul Gilmartin <[email protected]>wrote: > On Nov 20, 2012, at 08:30, Rick Troth wrote: > > > > Also, OpenVM sports an 'iconv' command. > > > > help oshell iconv > > > What about "man iconv"? > > > Not clear from that doc if it handles the multibyte encodings, unless > > that is implied by POSIX compliance. > > > On some other systems, "iconv -l" lists supported character sets. > > > It would be really nifty to have a Pipelines stage that wraps OpenVM > > commands. So many of them are filters, and a lot of shell scripts > > customers and users create are filters, that this would be *really* > > handy. > > > Yup. > > Send stderr to secondary output if connected; primary if not. > Perhaps allowing additional connectors to additional descriptors. > > Or an OpenVM utility that wraps Pipelines. Both seem naturals; > I'm surprised they don't exist. NIH? Concurrency problems? > (A purported OpenVM stage that buffered the OpenVM output and > blasted it to its output connector as the CMS stage does would > be a travesty.) > > The "address SYSCALL" facility in z/OS Rexx is magnificent. If > similar exists for CMS Rexx, it should be easy to code such a > wrapper. > > -- gil >
