You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Nikita Konev (JIRA)" <ji...@apache.org> on 2015/05/18 14:03:00 UTC
[jira] [Comment Edited] (QPID-6545) malformed cyrillic strings that
passed as TextMessage's property
[ https://issues.apache.org/jira/browse/QPID-6545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14547896#comment-14547896 ]
Nikita Konev edited comment on QPID-6545 at 5/18/15 12:02 PM:
--------------------------------------------------------------
Thank you, i tested you workaround.
Also I have to make reverse translation at receive side:
topic = bytesMessage.getStringProperty("topic");
char[] chars = topic.toCharArray();
byte[] topicBytes = new byte[chars.length];
for(int j = 0; j < chars.length; j++)
{
topicBytes[j] = (byte) chars[j];
}
topic = new String(topicBytes, Charset.forName("UTF8"));
Can you write me when it will be fixed?
was (Author: nikit.cpp):
Thank you, i tested you workaround.
Also I have to make reverse translation at receive side:
topic = bytesMessage.getStringProperty("topic");
char[] chars = topic.toCharArray();
byte[] topicBytes = new byte[chars.length];
for(int j = 0; j < chars.length; j++)
{
topicBytes[j] = (byte) chars[j];
}
topic = new String(topicBytes, Charset.forName("UTF8"));
Can you tell he when it will be fixed?
> malformed cyrillic strings that passed as TextMessage's property
> ----------------------------------------------------------------
>
> Key: QPID-6545
> URL: https://issues.apache.org/jira/browse/QPID-6545
> Project: Qpid
> Issue Type: Bug
> Components: Java Client
> Affects Versions: 0.32
> Environment: Windows 8 x84 Russian, RabbitMQ 3.1.5
> Reporter: Nikita Konev
> Attachments: Runner.java, screenRabbit.png
>
>
> When I attempt pass string that contains cyrillic symbols, it is malformed.
> I see malformed string in Rabbit's web interface and in java code which receives messages from Rabbit.
> Java src in utf8 Runner.java:38 and rabbit's screen attached.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org