I just want to use unicode encoding and MemoryPackSerializerOptions.Utf16 for may data, but the bool value deserialized by the MemoryPackSerializerOptions.Utf16 Option is wrong. What causes this
var da = Encoding.Unicode.GetString(MemoryPackSerializer.Serialize(false, MemoryPackSerializerOptions.Utf16));
Console.WriteLine(MemoryPackSerializer.Deserialize( Encoding.Unicode.GetBytes(da),MemoryPackSerializerOptions.Utf16));
Outputs:
True