Subject | Re: [firebird-support] Bug with character sets |
---|---|
Author | Kjell Rilbe |
Post date | 2009-05-19T12:13:26Z |
Dimitry Sibiryakov wrote:
with "max bytes per character". For char(2) data in utf8, buffer size
will be 8 byte, and max bytes per character is 4, so the data should eb
trimmed to 2 characters (codepoints).
That's what Milan said.
Kjell
--
------------------------------
Kjell Rilbe
DataDIA AB
E-post: kjell.rilbe@...
Telefon: 08-761 06 55
Mobil: 0733-44 24 64
[Non-text portions of this message have been removed]
>> But how does the -client- know what bytes are significant and whatClient has to determine number of characters by dividing buffer size
>> bytes aren't?
>
> You are right - client has no idea about length of data in
> characters, that's why it just fill whole buffer with spaces.
with "max bytes per character". For char(2) data in utf8, buffer size
will be 8 byte, and max bytes per character is 4, so the data should eb
trimmed to 2 characters (codepoints).
That's what Milan said.
Kjell
--
------------------------------
Kjell Rilbe
DataDIA AB
E-post: kjell.rilbe@...
Telefon: 08-761 06 55
Mobil: 0733-44 24 64
[Non-text portions of this message have been removed]