mirror of https://github.com/apache/activemq.git
https://issues.apache.org/activemq/browse/AMQ-2684 - encoding for web sockets and stomp
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@931089 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
684f5dfef1
commit
b53e4b545a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue