in reply to Re^3: Error "HTTP::Message content must be bytes" while posting with LWP
in thread Error "HTTP::Message content must be bytes" while posting with LWP

Actually, if you have a string with Unicode content, encode it to utf8 octets, by using Encode::encode:

use Encode qw(encode); my $body = encode('UTF-8', $content);

Of course you also need to set up the headers appropriately to indicate to the server that you're sending utf8.