Subject Re: [firebird-support] Bug with character sets
Author Kjell Rilbe
Dimitry Sibiryakov wrote:
>> But how does the -client- know what bytes are significant and what
>> 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.

Client has to determine number of characters by dividing buffer size
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]