git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@931047 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2010-04-06 08:19:18 +00:00
parent 3336a22ff9
commit 684f5dfef1
2 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@ public class StompFrame implements Command {
buffer.append("\n");
if (getContent() != null) {
try {
buffer.append(new String(getContent()));
buffer.append(new String(getContent(), "UTF-8"));
} catch (Throwable e) {
buffer.append(Arrays.toString(getContent()));
}

View File

@ -49,7 +49,7 @@ class StompSocket extends TransportSupport implements WebSocket, StompTransport
public void onMessage(byte frame, String data) {
try {
protocolConverter.onStompCommand((StompFrame)wireFormat.unmarshal(new ByteSequence(data.getBytes())));
protocolConverter.onStompCommand((StompFrame)wireFormat.unmarshal(new ByteSequence(data.getBytes("UTF-8"))));
} catch (Exception e) {
onException(IOExceptionSupport.create(e));
}