develooper Front page | perl.perl5.porters | Postings from November 1999

Re: EBCDIC/Unicode??

Peter Prymmer
November 30, 1999 14:25
Re: EBCDIC/Unicode??
Message ID:

In Message-ID: <> Mon, 29 Nov 1999 
Geoffrey Rommel, asked:

> I noticed some comments in MJD's digest about problems with EBCDIC and Unicode.
> This could have implications for my Convert::IBM390 module. Could you folks
> point me to a good place to read about Unicode support in Perl so that I can
> think about how I should handle this? Thanks.

Some aspects of perl's unicode support have yet to be (pod-)documented.
Some matters were supposed to be discussed on on the
mailing list which has an archive at:

On the perl-mvs list (open to all perl && EBCDIC users no matter what OS they 
are running) I would not mind discussing a possible way to turn the 
utf8.{c,pm} files into utfebcdic.{c,pm} equivalents so that perhaps we might 
use C<use utfebcdic;> as an internal representation similar to the way ASCII 
machines can use the C<use utf8;> pragma to turn on UTF-8 internal 
representation.  UTF-EBCDIC is discussed at:

which was just updated 11-nov.  For now the pragma C<use utf8;> in a perl
regression test on an ebcdic machine such as OS/390 just messes stuff up
since there is no mapping at all.  I should mention that for the short term 
my tuit supply is short and I'd really like to get dynamic loading working 
on OS/390 so I may not be able to help with a utfebcdic pragma right away.  
The perl-mvs list archive is at:

I note that in
Mark-Jason Dominus wrote:

   Under EBCDIC, however, 0x21 is a capital letter O. (I think.) 

not quite.  All upper (and lower) case latin letters, along with the arabic
numerals have a high bit set hence are all over 0x7f.  See any of:

for explicit mention of three EBCDIC codes pages that Perl OSes use
and that are compatible with mappings to 8859-1 ISO-Latin.  Under those
three code pages 0x21 maps to C1 control character 2 which is non-printing
character that the unicode people did not want to even name.

Peter Prymmer Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About