activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: Unicode support in C++ clients
Date Wed, 04 May 2011 17:41:13 GMT
On Wed, 2011-05-04 at 18:14 +0100, Suneel Papineni wrote:
> Hi,
> 
>  
> 
> I am getting problems in sending or receiving Unicode messages. Could
> someone please tell me how can I implement this correctly.
> 
>  
> 
> Message contains some Greek characters. I am using wide string or wide
> character array to represent this message in my C++ application. I am
> using "TextMessage" for normal strings. setText() method takes only
> std::string or char*, so I can't add wstring or wchar_t*.
> 
>  
> 
> In order to accommodate these Unicode characters in the message do I
> need to use any other type of messages (like ByteMessage or MapMessage).
> If so could someone help me with some sample code snippet.
> 
>  
You need to encode your text as UTF-8 before placing it into the
TextMessage, then it should be received correctly by other clients.

Regards


-- 
Tim Bish
------------
FuseSource
Email: tim.bish@fusesource.com
Web: http://fusesource.com
Twitter: tabish121
Blog: http://timbish.blogspot.com/

Connect at CamelOne May 24-26

The Open Source Integration Conference


Mime
View raw message