Subject | Re: [Firebird-Java] Re: One Byte Encoders maps unknown chars to 0 instead of '?' |
---|---|
Author | Roman Rokytskyy |
Post date | 2009-09-14T18:07:21Z |
> Since we didn't get any replies to our previous post, we would remindSorry for replying so late. Sure, I thing using '?' is a good idea. Will
> 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
>
commit it today or tomorrow.
Roman