colyseus / colyseus-haxe

⚔ Colyseus Multiplayer SDK for Haxe
https://docs.colyseus.io/getting-started/haxe-client/
MIT License
75 stars 16 forks source link

Fix Unicode string length detection (closes #35) #36

Closed kotwys closed 4 years ago

kotwys commented 4 years ago

Possible solution of the issue with sending strings with two- or more byte Unicode characters (#35).

What it does is encode the string with haxe.io.Bytes and use its length instead of the original one. It seems to work properly.

endel commented 4 years ago

Thank you so much @kotwys ❤️ ❤️ ❤️ Already updated here https://lib.haxe.org/p/colyseus/

From version 0.14 on I'd like to have the process of releasing on GitHub/haxelib automated, it is a bit tedious to do it all manually :) Cheers!

kotwys commented 4 years ago

Glad to help 😃