G
Gert Brinkmann
Hello,
I am using LWP::UserAgent to send utf-8 encoded xml-data to a web-server.
my $req = HTTP::Request->new (
POST => "http://myhost:8181",
HTTP::Headers->new (
'content-type' => "text/xml; charset=utf-8",
),
$xml_data,
);
my $ua = LWP::UserAgent->new;
my $resp = $ua->simple_request($req);
The problem ist, that lwp seems to convert the utf-8 data to iso-latin. I
have checked this by listening on the port 8181 via: "netcat -l -p 8181".
German Umlauts do occur there correctly readable as äöüß, but IMHO should
not.
I also have checked that the terminal is not converting the data by writing
a file using gedit that contains the string "gört" and netcat'ing it to the
port 8181. The result is: "gört" as expected.
What am I doing wrong?
Thanks,
Gert
I am using LWP::UserAgent to send utf-8 encoded xml-data to a web-server.
my $req = HTTP::Request->new (
POST => "http://myhost:8181",
HTTP::Headers->new (
'content-type' => "text/xml; charset=utf-8",
),
$xml_data,
);
my $ua = LWP::UserAgent->new;
my $resp = $ua->simple_request($req);
The problem ist, that lwp seems to convert the utf-8 data to iso-latin. I
have checked this by listening on the port 8181 via: "netcat -l -p 8181".
German Umlauts do occur there correctly readable as äöüß, but IMHO should
not.
I also have checked that the terminal is not converting the data by writing
a file using gedit that contains the string "gört" and netcat'ing it to the
port 8181. The result is: "gört" as expected.
What am I doing wrong?
Thanks,
Gert