EDevil has asked for the wisdom of the Perl Monks concerning the following question:
andre@blogs-dev:~$ perl -e 'use Encode; use LWP::Simple; use Data::Dum +per; my $html = get("http://ljsapo.blogspot.com/feeds/posts/full"); u +se XML::Simple; my $parsed = XMLin($html); my $text = $parsed->{"entr +y"}->{"tag:blogger.com,1999:blog-20104370.post-115522283622549946"}-> +{"content"}->{"content"}; print Dumper(Encode::is_utf8($text));' $VAR1 = ''; andre@blogs-dev:~$
andre.cruz@blogs1:~$ perl -e 'use Encode; use LWP::Simple; use Data:: +Dumper; my $html = get("http://ljsapo.blogspot.com/feeds/posts/full") +; use XML::Simple; my $parsed = XMLin($html); my $text = $parsed->{"e +ntry"}->{"tag:blogger.com,1999:blog-20104370.post-115522283622549946" +}->{"content"}->{"content"}; print Dumper(Encode::is_utf8($text));' $VAR1 = '1'; andre.cruz@blogs1:~$
Also they have the same locale settings:andre@blogs-dev:~$ perl -v This is perl, v5.8.4 built for i386-linux-thread-multi Copyright 1987-2004, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using `man perl' or `perldoc perl'. If you have access to + the Internet, point your browser at http://www.perl.com/, the Perl Home Pa +ge. andre@blogs-dev:~$
andre@blogs-dev:~$ locale LANG=POSIX LC_CTYPE="POSIX" LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL= andre@blogs-dev:~$
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Encoding differences
by almut (Canon) on Feb 26, 2007 at 16:33 UTC | |
by EDevil (Acolyte) on Feb 26, 2007 at 17:07 UTC | |
|
Re: Encoding differences
by ikegami (Patriarch) on Feb 26, 2007 at 16:26 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |