Encoding iso-8859-16

[email protected] (Sastry)
Newsgroups perl.unicode,perl.mvs,perl.perl5.porters,perl.beginners
Message-ID <[email protected]>
Hi

I am running the following script on EBCDIC 

use Encode;
$string = "a";
$enc_string = encode("iso-8859-16", $string);
print "\n String: $string\n";
print "\n enc_string: $enc_string\n";


The output:

String: a
enc_string: ñ (This is the character for codepoint \xF1 on iso-8859-16)

What is the expected output in enc_string?

On Linux both String and enc_string are set to "a"

Thanks in advance

regards
Sastry
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.