aumcode/nfx

The BSON serializer WriteCString() bug with wide unicode chars

Closed this issue · 2 comments

 [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)

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

Fixed by 829b4a8