LWP::Simple and utf8 problem

From: Thomas Götz (t.goetz_at_dkfz.de)
Date: 04/19/04


Date: Mon, 19 Apr 2004 09:22:19 GMT

Hi,

I want to retrieve a webpage that includes unicode characters using the
LWP::Simple module. But how can I tell LWP::Simple which coding it should
use as I haven't found anything concerning coding in the docs.

I use the following:

---
#!/usr/bin/perl -w
use strict;
use warnings;
use LWP::Simple;
my $file = "tmpfile";
my $url;
$url  = "http://www.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?";
$url .= "db=Pubmed&retmax=500&id=15017969&retmode=xml";
getstore($url, $file);
exit;
-----
As it seems, the unicode characters are not correctly stored in the file. As
I'm not very familiar with utf8 stuff, I'd like to ask for a hint on how to
correctly store utf8-encoded webpages in a local file...!?
Tom


Relevant Pages

  • LWP::Simple and utf8 problem
    ... I want to retrieve a webpage that includes unicode characters using the ... use as I haven't found anything concerning coding in the docs. ... the unicode characters are not correctly stored in the file. ...
    (comp.lang.perl.misc)
  • LWP::Simple and utf8 problem
    ... I want to retrieve a webpage that includes unicode characters using the ... use as I haven't found anything concerning coding in the docs. ... the unicode characters are not correctly stored in the file. ...
    (perl.beginners)
  • LWP::Simple and utf8 problem
    ... I want to retrieve a webpage that includes unicode characters using the ... use as I haven't found anything concerning coding in the docs. ... the unicode characters are not correctly stored in the file. ...
    (comp.lang.perl)
  • Re: LWP::Simple and utf8 problem
    ... > I want to retrieve a webpage that includes unicode characters using the ... > use as I haven't found anything concerning coding in the docs. ... the unicode characters are not correctly stored in the file. ...
    (comp.lang.perl.modules)
  • Re: IE 6.0 - Browser Freezes - Any Ideas?
    ... I mean that the coding for that webpage has a huge line of garbage. ... contact the webmaster for that site & advise them of the issue. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)