diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-09-30 19:35:50 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-09-30 22:20:45 +0200 |
commit | adde35839be1b302547ec39bc330999dc3d55727 (patch) | |
tree | bd0654c80a08bf70b1d7568a633c50478a3abf23 /ridljar/com/sun | |
parent | 1064a0d941099203fb5781edf599274dbf078931 (diff) |
cid#1545655 Dm: Dubious method used
Change-Id: I76b447d51429c867e24c1bcdd357689c849ea103
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157438
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'ridljar/com/sun')
-rw-r--r-- | ridljar/com/sun/star/lib/connections/websocket/WebsocketConnection.java | 3 |
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); |