Subject | Re: [firebird-support] Right-padded char fields? |
---|---|
Author | Adriano dos Santos Fernandes |
Post date | 2008-09-01T13:41:56Z |
Ivan Prenosil escreveu:
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
>> Could you add a new SQL_TYPE with the new "length of data" but let FBIf we have '<char that use 2 bytes>' in a CHAR(3) UTF-8 column, engine
>
> 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 ?
>
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