Subject | Re: One Byte Encoders maps unknown chars to 0 instead of '?' |
---|---|
Author | kaneider_daniel |
Post date | 2009-09-09T15:32:36Z |
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
Thanks in advance.
[Non-text portions of this message have been removed]
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
Thanks in advance.
[Non-text portions of this message have been removed]