Re: Encoding iso-8859-16

2005-08-08 Thread Nicholas Clark
On your EBCDIC platform, what does this give? use Encode; $string = "a"; $enc_string = encode("iso-8859-16", $string); print ord ($enc_string), "\n"; __END__ Nicholas Clark -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Transliteration operator(tr//)on EBCDIC platform

2005-08-08 Thread Nicholas Clark
a regexp leave a gap, but [\x89-\x91] not. I don't know where ranges in tr/// are parsed, but given that I grepped for EBCDIC and didn't find any analogous code, it looks like tr/\x89-\x91// is treated as tr/i-j// and in turn i-j is treated as letters and always "special cased"

Re: Encoding iso-8859-16

2005-08-09 Thread Nicholas Clark
On Tue, Aug 09, 2005 at 10:58:48AM +0530, Sastry wrote: > Hi > > I get 73 printed on EBCDIC platform. I think it is supposed to print > 129 as it is the numeric equivalent of 'a'. > > -Sastry > > > > On 8/8/05, Nicholas Clark <[EMAIL PROTECTED]

Re: Encoding iso-8859-16

2005-08-10 Thread Nicholas Clark
On Wed, Aug 10, 2005 at 02:11:45PM +0530, Sastry wrote: > On 8/9/05, Nicholas Clark <[EMAIL PROTECTED]> wrote: > > On Tue, Aug 09, 2005 at 10:58:48AM +0530, Sastry wrote: > > > > $enc_string = encode("iso-8859-16", $string); > > So $enc_string should

Re: Encoding iso-8859-16

2005-08-19 Thread Nicholas Clark
w. How thorough are the tests? Do the tests check for the conversion of characters with Unicode code points >127? You're asking questions beyond my knowledge. Nicholas Clark -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Encoding iso-8859-16

2005-08-19 Thread Nicholas Clark
; NATIVE_TO_ASCII macro on the input character? I don't know. And if the test is only checking for invariant characters below 127, it doesn't strike me as a very thorough test. Nicholas Clark -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL