Hi,
I changed character set from latin1 to utf8 and i get 'Invalid Class typecast'. Delphi debugger does not help me very much.
Does this have to do enything with the corelab components?
Should i change anything else in the database to get utf8 working?
Thanks!
best regards,
Hans
Mysql UTF8 : EInvalid Cast with message 'Invalid Class typecast'
Most possible reason of this problem is that you have created fields for the query in design time. All the string fields were interpreted as TStringField with the latin1 character set. But after you changed character set to utf8, all the string fields are interpreted as TWideStringField.
You could fix this problem just by recreating fields in design time.
You could fix this problem just by recreating fields in design time.