Subject Re: [firebird-support] Right-padded char fields?
Author Adriano dos Santos Fernandes
Ivan Prenosil escreveu:
>> Could you add a new SQL_TYPE with the new "length of data" but let FB
>
> Why ? You are talking about CHAR datatype, i.e. fixed number of characters.
> For UTF8 you can simply compute
>
> number of characters = buffer length / 4
>
> Is it not enough for your needs ?
>
If we have '<char that use 2 bytes>' in a CHAR(3) UTF-8 column, engine
will return a buffer with '<2 bytes><10 spaces>'. We know that valid
bytes of this UTF-8 string are only the four first, but ISQL don't know
how to handle this for arbitrary charsets and format the data in that
charset.


Adriano