Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: Embperl

perlio questions

 

 

ModPerl embperl RSS feed   Index | Next | Previous | View Threaded


realmerx at gmail

Jun 11, 2006, 3:44 AM

Post #1 of 1 (1090 views)
Permalink
perlio questions

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

ModPerl embperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.