✅ c# websocket i want to disable utf8 validation on `WebSocketMessageType.Text`
I send strings with special characters and the server throws me
29 Replies
Send it as binary then
i want to have separated actual binary packet from string ones
so i dont have to use a custom encoder to encode and decode metadata to payload
Why does the string have special characters that are invalid utf-8
yeah i don't believe you can change encoding, utf-8 is probably the standard for the protocol
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
i send text
but has special characters
i hate this pointless cvheck that noone cwants
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
Cause it's a check that nobody asked and can't be disabled
Other libs have them
GitHub
Option to skip utf-8 check · Issue #1924 · websockets/ws
I've searched for any related issues and avoided creating a duplicate issue. Description I was wondering if it would be interesting to have an option (disabled by default) to skip the UTF-8 che...
You will make me install a third party library
Yes it's hard coded on the websocket code
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
The check yes
It's literally throwing me an exception
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
When Im reading stream
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
Who is throwing the exception is the .net websocket lib lol
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
It's an example
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
Showing that other ones
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
Let you disable it
Yes but pisses me off
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
Yes but all of them it's yo change the way I encode the data
I will use message pack
Sound good
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
Or I'll do my simple packet encoder
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
But maybe I want something simpler that fits my needs
That can be archived with few lines of code
If you have no further questions, please use /close to mark the forum thread as answered