Using a OutStream subclass to wrap StrBufOutStream does not delegate Unicode char writes correctly since delegation routes thru the charset encoder.
Workaround is to use Buf.
Promoted to ticket #1031 and assigned to brian
Ticket resolved in 1.0.53
Fixed delegation model to handle StrBuf as sort of a special case optimized to deal with chars.
In JsonOutStream there is still this TODO
buf := Buf() // TODO: switch to StrBuf once #1031 is fixed
If you change that can you also at the @Js tag to this class, I would like to use it in js as well
pushed a fix
Login or Signup to reply.