activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordon Sim <g...@redhat.com>
Subject Re: qpid cpp text message
Date Mon, 13 Jul 2015 12:46:54 GMT
On 07/12/2015 08:03 PM, plsph wrote:
> it doesn't work with setContentObject, there should be
> msg.getContentObject().setEncoding()
> but it still doesn't help with my issue.
> i use qpid-cpp 0.32, activemq 11.1
> code is something like:
>
> Message msg(content);
> msg.setContentType() <- i was trying everything, jms-type, text/plain
> msg.getContentObject().setEncoding()
> sender.send(msg)

Try:

Message msg;
msg.setContentObject(content);
msg.getContentObject().setEncoding("utf8");
sender.send(msg)


Mime
View raw message