summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaud Simon <arnaudsimon@apache.org>2007-06-20 14:11:03 +0000
committerArnaud Simon <arnaudsimon@apache.org>2007-06-20 14:11:03 +0000
commit83ab5f3d0b5c1d6e509ceb3158a6b3b6816b86ad (patch)
treeedf82f7b4e9239732d5f9c744a45e0f14d3e4230
parentd4b7a4870c23bcacc2b1ea8abcc30b269caf9b55 (diff)
downloadqpid-python-83ab5f3d0b5c1d6e509ceb3158a6b3b6816b86ad.tar.gz
changed setText to use UTF8 as default encoder
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@549112 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--java/client/src/main/java/org/apache/qpid/client/message/JMSTextMessage.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/client/src/main/java/org/apache/qpid/client/message/JMSTextMessage.java b/java/client/src/main/java/org/apache/qpid/client/message/JMSTextMessage.java
index 763af312f4..87cc80f21d 100644
--- a/java/client/src/main/java/org/apache/qpid/client/message/JMSTextMessage.java
+++ b/java/client/src/main/java/org/apache/qpid/client/message/JMSTextMessage.java
@@ -119,7 +119,7 @@ public class JMSTextMessage extends AbstractJMSMessage implements javax.jms.Text
final String encoding = getContentHeaderProperties().getEncodingAsString();
if (encoding == null)
{
- _data.put(text.getBytes());
+ _data.put(text.getBytes(DEFAULT_CHARSET.name()));
}
else
{