#!/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); }
In reply to Re: LWP and UTF-8
by moritz
in thread LWP and UTF-8
by perlmonkdr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |