in reply to LWP and UTF-8
#!/usr/bin/perl use strict; use warnings; use Encode; use LWP::Simple; my $content = get('http://perl-6.de'); if ($content){ $content = decode('utf-8', $content); # now work with $content here # assuming your terminal is set to utf-8 as well: print encode('utf-8', $content); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: LWP and UTF-8
by perlmonkdr (Beadle) on Oct 30, 2007 at 05:39 UTC |