Re: enabling utf8 encoding for sax parer XML::SAX::Expat
Michael Ludwig <[email protected]>
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <[email protected]> |
Michael Ludwig schrieb:
> my $octets = encode( 'utf8', $ss->output_string( $result));
> my $req = HTTP::Request->new( POST => $url);
>
> $req->content_type('text/xml; charset=utf-8');
> $req->content( $cont );
Correction, the above line should read:
$req->content( $octets );
> my $res = $ua->request( $req);
> if ( ! $res->is_success ) {
> print STDERR $res->status_line, "\n";
> }
Michael Ludwig
_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs