The version of the Net::AMQP::RabbitMQ is 2.200000. The output of the lines you provided are:
SV = NULL(0x0) at 0xd9b5f0 REFCNT = 1 FLAGS = () SV = PVLV(0xda5d30) at 0xd7efd0 REFCNT = 1 FLAGS = (TEMP,GMG,SMG) IV = 0 NV = 0 PV = 0 MAGIC = 0xdab340 MG_VIRTUAL = &PL_vtbl_defelem MG_TYPE = PERL_MAGIC_defelem(y) MG_FLAGS = 0x02 REFCOUNTED MG_OBJ = 0xd7eb98 SV = PV(0xd7cb78) at 0xd7eb98 REFCNT = 1 FLAGS = (POK,pPOK) PV = 0xdab730 "body"\0 CUR = 4 LEN = 8 TYPE = y TARGOFF = 0 TARGLEN = 1 TARG = 0xd7ed48 SV = PVHV(0xd84f90) at 0xd7ed48 REFCNT = 2 FLAGS = (SHAREKEYS) ARRAY = 0x0 KEYS = 0 FILL = 0 MAX = 7 RITER = -1 EITER = 0x0
I also noticed that the publish method takes in props : content_type => $string and content_encoding => $string. Could it be that Net::RabbitMQ has default encoding UTF8 but Net::AMQP::RabbitMQ doesnt? And if so how can I specify so that it uses UTF8? What do you think?

In reply to Re^2: Malformed UTF-8 char when publishing in Net::AMQP::RabbitMQ by perl_help26
in thread Malformed UTF-8 char when publishing in Net::AMQP::RabbitMQ by perl_help26

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.