Subject | Re: [IBO] UTF-8 handling |
---|---|
Author | Andreas Hesse |
Post date | 2007-10-31T21:17:22Z |
Hello Jason, hello Stefan,
convert it to a WideString.
Delphi has an extry type for utf8 (it is defined as string, but an
extra type).
And an Utf8 String ist not the same as an AnsiString which is not the
same as a WideString.
No need to know anything about it.
And one more aspect:
AsVariant should return a WideString for Utf8 or UnicodeFSS Char Columns.
Regards,
Andreas
>>It would be the same as first getting the string as Utf8 and then
>> What about TIB_Column.AsWideString?
>
> Not sure this would be a solution.
convert it to a WideString.
>Realy?
>> And if we need a UTF8 string, we could
>> add a method AsUtf8 to TIB_Column?!
>
> No need to do that.
Delphi has an extry type for utf8 (it is defined as string, but an
extra type).
And an Utf8 String ist not the same as an AnsiString which is not the
same as a WideString.
>AsUtf8 would work independend from Connection.CharSet.
> Just set TIB_Connection.CharSet to UTF-8 and then use AsRawString.
No need to know anything about it.
And one more aspect:
AsVariant should return a WideString for Utf8 or UnicodeFSS Char Columns.
Regards,
Andreas