activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hsiao <xiao_...@cvicse.com>
Subject Re: ActiveMQ CMS Exception
Date Mon, 10 Dec 2007 02:01:43 GMT

But I use Unicode character such as below is OK:
               TextMessage* message = session->createTextMessage( ("Hello,
世界");
Can you tell me why? thanks


Tim Bish wrote:
> 
> ActiveMQ CPP does not support the Unicode character set currently.
> 
> Regards
> Tim.
> 
> Hsiao wrote:
>> In vs2005-activemq-example project, when I set message property with
>> chinese
>> language, such as below:
>>                 MapMessage* message = session->createMapMessage( );
>> 	   message->setString("myKey", text);   //add 1
>>
>>                 message->setStringProperty( "myPropertyKey", "Hello, 世界"
>> );  
>> //add 2
>>
>>                 // Tell the producer to send the message
>>                 printf( "Sent message #%d from thread %s\n", ix+1,
>> threadIdStr.c_str() );
>>                 producer->send( message );
>>
>> when I add 1 and run ,the consumer can receive the MapMessage, but can't
>> getString("myKey") value
>> when I add 2 and run ,show "JMS Exception occured.  Shutting down
>> client."
>>
>> Does I use error or AMQ not support Chinese language fully.
>>
>> Envirment: window xp +sp2, vs2005 , activemq-cpp-2.1
>>   
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/ActiveMQ-CMS-Exception-tp14209269s2354p14246100.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


Mime
View raw message