summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ridljar/com/sun/star/lib/connections/websocket/WebsocketConnection.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/ridljar/com/sun/star/lib/connections/websocket/WebsocketConnection.java b/ridljar/com/sun/star/lib/connections/websocket/WebsocketConnection.java
index d408046b13ed..cdffa43faf6c 100644
--- a/ridljar/com/sun/star/lib/connections/websocket/WebsocketConnection.java
+++ b/ridljar/com/sun/star/lib/connections/websocket/WebsocketConnection.java
@@ -30,6 +30,7 @@ import java.net.ProtocolException;
import java.net.Socket;
import java.net.URI;
import java.net.URISyntaxException;
+import java.nio.charset.StandardCharsets;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
@@ -260,7 +261,7 @@ public class WebsocketConnection extends WebSocketClient implements XConnection,
return;
}
- byte[] messageBytes = messageParts[1].getBytes();
+ byte[] messageBytes = messageParts[1].getBytes(StandardCharsets.UTF_8);
try {
_inputStreamWriter.write(messageBytes);