perl_help26 has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
In the below code, when i use Net::RabbitMQ, the recieved result is correct BUT when I use Net::AMQP::RabbitMQ, I get this error:
"Malformed UTF-8 character (overflow at 0xfff0d3f5f0d3f5c2, byte 0x00, after start byte 0xff) in unpack" and the result is all mixed up! Do these modules have different encodings? Any idea on what is happening there? Thanks
my $type=2; my $key=85170777777; my $bin = pack('Cx7Q',$type,$key); my $res = $me->{mq}->publish(1, "nc.look", $bin, {exchange=>'nc'}, {re +ply_to => $me->{replyQ},}); $res = $me->{mq}->recv(); print Dumper $res;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Malformed UTF-8 char when publishing in Net::AMQP::RabbitMQ
by ikegami (Patriarch) on Jul 08, 2016 at 19:52 UTC | |
by perl_help26 (Beadle) on Jul 12, 2016 at 14:37 UTC |