git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@931089 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2010-04-06 11:04:12 +00:00
parent 684f5dfef1
commit b53e4b545a
1 changed files with 6 additions and 1 deletions

View File

@ -16,6 +16,7 @@
*/
package org.apache.activemq.transport.stomp;
import java.io.UnsupportedEncodingException;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
@ -72,7 +73,11 @@ public class StompFrame implements Command {
}
public String getBody() {
return new String(content);
try {
return new String(content, "UTF-8");
} catch (UnsupportedEncodingException e) {
return new String(content);
}
}
public void setContent(byte[] data) {