I don't think there is an automatic way. You'll have to do it manually... Or maybe someone else has an idea...
Main Topics
Browse All TopicsHi,
I have recently upgraded to Delphi 2009 in order to correctly use Unicode databases.
I'm connecting to a UTF-8 MySQL 5 db via dbExpress, using Devart's dbExpress driver (v4.40)
Using standard TSQLConnection, data is accessed thru TSQLQuery->TDataSetProvide
The problem is, that when adding fields to FieldList (via Add All Fields), string fields get mapped to TStringField which is AnsiString not WideString. Therefore when executing application I get the following error message:
Project bbadmin.exe raised exception class EDatabaseError with message 'sqqTeams: Type mismatch for field 'NAME', expecting: String actual: WideString'.
I think I could manually chage their types to TWideStringField, however I doubt it would be the way doing it.
How can I manage to get these Fields automatically mapped to WideString fields?
Thank you
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
When I'm using the built in driver and I set the following parameter on SQLConnection
ServerCharSet=utf8
it does the thing for me.
However, the interesting thing is that accented characters still don't display correctly.
The data in the mysql db originates from a website, gets submitted thru a php application, that uses utf8.
Might be a difference between utf8 and utf8 encoding?
Business Accounts
Answer for Membership
by: fulopattilaPosted on 2009-01-12 at 02:58:10ID: 23352255
I also have Delphi 2007 installed on this computer, might this cause problems?
(D2007 was installed previously, D2009 recently)