Subject | Re: [firebird-support] Bug with character sets |
---|---|
Author | Dimitry Sibiryakov |
Post date | 2009-05-20T11:36:34Z |
> But I suspect this makes this issue independent from the multi-byteYes. Size of output buffer, for example. If application must decode
> character sets then, because your N (length in characters) is always 10
> for CHAR(10) regardless of the string stored inside (e.g. 'a') and its
> charset. I mean that XSQLVAR may contain either N = 40 or N = 10, and it
> doesn't change anything for you, as you have to decode the partial
> string anyway. Do I miss anything?
string from UTF8 which is gotten from server into WideString, what size
of buffer must be allocated before call of MultiByteToWideChar? Of
course, I can call the function twice, first time to get required size
and another for real data, but...
SY, SD.