Subject | Re: PS about client-to-FBcore protocols regarding charset, #5. |
---|---|
Author | the_a_rioch |
Post date | 2012-07-03T08:28:42Z |
> So, I believe the rule should be either:FBClient is not required to break external API
>
> - All clients are able to consume data in UTF-8. Period. All Delphi
> users will cry when they start to convert Unicode strings to SBCS and back.
Even if, for example in FB3, new version of wire protocol introduced, making Unicode or charset specification madatory, that would not break Delphi applications, provided that FBClient would make it's work of translating wire protocol to used DLL API correctly, including transparent charset changes if needed.
> - All clients get what they ask for. Those asking UTF-8 get UTF-8, thoseThe fact that BLOBs can get around such limitations would lead to "VARCHAR too" wishes, and they would be reasonable :-)
> asking WIN1251 get WIN1251, and when umlauts are stored - they get an
> error "Cannot transliterate characters between character sets".