Subject | Re: [Firebird-Java] Re: PS about client-to-FBcore protocols regarding charset, #5. |
---|---|
Author | Roman Rokytskyy |
Post date | 2012-07-03T12:24:40Z |
>> >> - All clients are able to consume data in UTF-8. Period. AllIt can provide whatever non-Unicode API except "raw data" a.k.a.
>> Delphi
>> >> users will cry when they start to convert Unicode strings to SBCS
>> >> and back.
>> >
>> > FBClient is not required to break external API
>>
>> You can't. The logic of something-to-NONE conversion is that "read"
>
> That was not the question of something to none.
> It was generic topic.
>
> And i mean that even is wire protocol would be Unicode-only, that
> does not necessary mean client cannot provide non-Unicode API.
"NONE".
> Making wire protocol Unicode-only would require new version ofNot only that. Server has to reject the NONE encoding for any database
> fbclient, but not render application no more working.
or column.
The logic with NONE is similar to NULL. NULL is not TRUE, NULL is not
FALSE, it is NULL. Same with NONE - there is no rules to store data in
NONE charset in a consisten way. Making wire protocol (or whathever
part) hardcoded with UTF8 you require a consistent conversion between
"something" and "UTF8", which cannot be provided in case of "NONE.
Let's stop this discussion here - it is becoming to lengthy. :)
Roman