Subject | Re: [Firebird-Architect] UTF-8 Everywhere |
---|---|
Author | Ann Harrison |
Post date | 2014-01-17T20:58:25Z |
Jason Wharton <supportlist@...> wrote:
I'm tending to think that adopting a UTF8 only approach is a step backward
...As for everyone else still dealing with windows
wide strings, codepages, etc., this simply imposes a potentially major
rewrite of their applications to conform to this new requirement. Legacy
support is always a factor to consider.I hope that the proposal was for UTF8 internally - storage, sorting, manipulation -with transformation to and from the declared character set on output and input.There should be no changes to applications.Having a single internal characterrepresentation simplifies comparisons, and more important, greatly reducesthe number of collations - one per desired character sequence rather than onefor each character set that express the language.
If we want to talk about a step forward in flexibility, I suggest you
consider adding in a universal string where you can have each record
indicate what charset is being stored. This would allow any of the
registered charsets to be stored on a per-record basis.Arrg! What possible difference does it make to the user how a characteris stored as long as it arrives at the application in the desired format andorder? If your goal is to have a world-wide phone book, UTF8 is the onlyway to go. Checking each record (why not each field?) to see how tointerpret its strings will just slow every character operation and introducebugs.Moreover, at the moment, Firebird relies on preallocated record buffersfor transfers from the compressed storage format for comparisons andother manipulation. If the record format is unknown at request compilationtime, all buffers would need to be allocated at the maximum possiblesize.Best regards,Ann