
realmerx at gmail
Jun 11, 2006, 3:44 AM
Post #1 of 1
(1090 views)
Permalink
|
Hello, I am wondering why following does not work as expected File encoding is in iso-8859-1 my $str = "للل"; binmode(OUT, ":utf8"); print OUT $str; Expected result: string is output in utf. Real result: string is still in iso-8859-1 When I write it like this use Encode; my $str = "للل"; Encode::from_to($str, "iso-8859-1", "utf8"); print OUT $str; everything works as expected, that is $str is output in utf. All the best, Phade
|