Subject | Re: [firebird-support] Storing Delphi 2009 "UnicodeString" into database, UTF8? |
---|---|
Author | Kjell Rilbe |
Post date | 2009-05-22T07:41:29Z |
Leyne, Sean wrote:
requests extraction starting at pos 3. So the result has to be either
the diacritic "¨" if composites are treated just as ordinary codepoints,
or "R" if the "A¨" combo is treated as a single "character".
How do you propose the result should become "Ä"?
Kjell
--
--------------------------------------
Kjell Rilbe
DataDIA AB
E-post: kjell@...
Telefon: 08-761 06 55
Mobil: 0733-44 24 64
> > It's not just a matter of differentiating between 16 bit words andImpossible, since the "A¨" combo starts at pos 2, and the substring call
> > Unicode codepoints.
> >
> > For "DÄR" with Ä coded as A + diacritic composite ("DA¨R"), what exactly
> > does substring(MyDÄRstring, 3, 1) mean? Is it the diacritic '¨' or the
> > 'R'?
>
> Neither!
>
> Since SUBSTRING is a _string_ function, the correct answer would be "Ä"
requests extraction starting at pos 3. So the result has to be either
the diacritic "¨" if composites are treated just as ordinary codepoints,
or "R" if the "A¨" combo is treated as a single "character".
How do you propose the result should become "Ä"?
Kjell
--
--------------------------------------
Kjell Rilbe
DataDIA AB
E-post: kjell@...
Telefon: 08-761 06 55
Mobil: 0733-44 24 64