We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bfcc7c commit 19c9827Copy full SHA for 19c9827
src/main/kotlin/server/Server.kt
@@ -83,7 +83,8 @@ class Server(
83
84
keepReading = readResult == BUFFER_SIZE
85
}
86
- val charBuffer = StandardCharsets.UTF_8.decode(clearInput.toByteArray().toByteString().asByteBuffer())
+ val charBuffer = clearInput.toByteArray().decodeToString()
87
+// val charBuffer = StandardCharsets.UTF_8.decode(clearInput.toByteArray().toByteString().asByteBuffer())
88
builder.append(charBuffer)
89
clearInput.reset()
90
0 commit comments