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.b...@fusesource.com
Web: http://fusesource.com
Twitter: tabish121
Blog: http://timbish.blogspot.com/

Connect at CamelOne May 24-26

The Open Source Integration Conference

Reply via email to