Subject Re: [Firebird-Java] Re: One Byte Encoders maps unknown chars to 0 instead of '?'
Author Roman Rokytskyy
> Since we didn't get any replies to our previous post, we would remind
> that we consider this behavior as a bug. All encoders we know convert
> unknown characters to '?' or similar, but no one maps them to '\0'.
>
> We propose to solve this issue with the following patch in
> Encoding_OneByte.Initialize(String,char[],byte[],char[])
>
> // BEGIN PATCH
> Arrays.fill(charToByte, (byte)'?');
> // END PATCH
>

Sorry for replying so late. Sure, I thing using '?' is a good idea. Will
commit it today or tomorrow.

Roman