Subject | Re: Connection charset UTF8, column charset ASCII: right padded char fields |
---|---|
Author | skoczian |
Post date | 2008-12-09T14:56:34Z |
--- In firebird-support@yahoogroups.com, Dmitry Yemanov <dimitr@...>
wrote:
their declared length, they are padded to 4 times this length (which
seems to be normal for UTF8). One character, 3 spaces for a column
declared as CHAR(1) CHARACTER SET ASCII.
Herta
wrote:
>from
> skoczian wrote:
> >
> > I've seen the discussion about right padded char(n) fields sent
> > the Firebird server if the field has character set UTF8. Buteven if
> > a char column with fixed length is declared with character setASCII
> > the clients I've used seem to pad it with blanks, if theconnection
> > character set is UTF8. Is that right? I could understand it forUTF8
> > columns declared as, say, ISO8859_1, because transliteration to
> > might need more bytes. But that can't happen with an ASCIIcolumn,
> > so why those blanks?even
>
> It's not related to charsets. CHAR values are always space-padded,
> when stored inside the database (although compressed).Oh, sorry, I see that I forgot to say: the fields aren't padded to
>
their declared length, they are padded to 4 times this length (which
seems to be normal for UTF8). One character, 3 spaces for a column
declared as CHAR(1) CHARACTER SET ASCII.
Herta