aumcode / nfx

C# Server UNISTACK framework [MOVED]
https://github.com/agnicore/nfx
Other
391 stars 93 forks source link

The BSON serializer WriteCString() bug with wide unicode chars #57

Closed itadapter closed 7 years ago

itadapter commented 7 years ago
 [System.ArgumentException] The output byte buffer is too small to contain the encoded data, encoding 'Unicode (UTF-8)' fallback 'System.Text.EncoderReplacementFallback'.

from BSON.BinUtils.WriteCSTring(stream, value)

itadapter commented 7 years ago

Created NFX.NUnit.Serialization.WriteReadLongStringOfLongChars() - it fails with chinese '久'

itadapter commented 7 years ago

Fixed by 829b4a8