 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Chris Hedges Guest
|
Posted: Wed Sep 15, 2004 3:42 pm Post subject: Delphi 8 and Unicode |
|
|
Hi All,
I'm trying to convert a small test app from Delphi 6 which reads Chinese
text from a Firebird database with the charset set to UNICODE_FSS
and data access via DBExpress (TSQLConnection, TSQLTable, DatasetProvider
and ClientDataset)
In this D6 app to get round the Unicode issues, I used the TNT components
and TntStringfields to allow
the Unicode strings to display correctly.
I've now tried to move this app to Delphi 8 using the same DB and equivalent
D8 controls.I thought that this would be an easy task as
I'm lead to believe D8 is natively Widestring now so I thought the data
would display correctly without
any third-party components such as TNT, but its seems I'm wrong as the data
is displaying incorrectly.
So is DBExpress Unicode compatable or do I need to do some conversion of
the data before I am able
to display is properly? I understand the database holds all the data in UTF8
format so what must I do to convert this into
a Widestring like the TNT components do?
Many thanks, I'm a bit of a n00b with Delphi 8 so any tips are welcome
(Jeez, what a project to learn Delphi 8 with!!!!!!)
Thanks
Chris Hedges
Tickets.com UK
|
|
| Back to top |
|
 |
Dmitry Arefiev [gs-soft.r Guest
|
Posted: Thu Sep 16, 2004 7:16 pm Post subject: Re: Delphi 8 and Unicode |
|
|
Hi !
In few words dbExpress does not support Unicode.
Probably UTF8 will come through it (theoretically
speaking). At least, i was able to get that from
Oracle.
Yes, D8 is .Net application, so it works in Unicode
environment. But dbExpress is not. I think, D8 stupidly
converts strings as ASCII->Unicode.
Regards,
Dmitry
--
Dmitry Arefiev, gs-soft Company, community.gs-soft.com
Personal - www.da-soft.com
SAPx - Delphi to SAP R/3 direct access
Saphir - SAP R/3 metadata on your fingertips
MetaBase - ERWIN model in Delphi applications
NCOCI8 - Freeware Delphi to ORACLE direct access
Chris Hedges wrote:
| Quote: | Hi All,
I'm trying to convert a small test app from Delphi 6 which reads Chinese
text from a Firebird database with the charset set to UNICODE_FSS
and data access via DBExpress (TSQLConnection, TSQLTable, DatasetProvider
and ClientDataset)
In this D6 app to get round the Unicode issues, I used the TNT components
and TntStringfields to allow
the Unicode strings to display correctly.
I've now tried to move this app to Delphi 8 using the same DB and equivalent
D8 controls.I thought that this would be an easy task as
I'm lead to believe D8 is natively Widestring now so I thought the data
would display correctly without
any third-party components such as TNT, but its seems I'm wrong as the data
is displaying incorrectly.
So is DBExpress Unicode compatable or do I need to do some conversion of
the data before I am able
to display is properly? I understand the database holds all the data in UTF8
format so what must I do to convert this into
a Widestring like the TNT components do?
Many thanks, I'm a bit of a n00b with Delphi 8 so any tips are welcome
(Jeez, what a project to learn Delphi 8 with!!!!!!)
Thanks
Chris Hedges
Tickets.com UK
|
|
|
| Back to top |
|
 |
Chris Hedges Guest
|
Posted: Fri Sep 17, 2004 8:53 am Post subject: Re: Delphi 8 and Unicode |
|
|
Dmitry,
Do you have any suggestions how would I get around this problem?
What DB controls are Unicode friendly?
Many thanks
Chris
"Dmitry Arefiev [gs-soft.ru]" <darefiev (AT) gs-soft (DOT) ru> wrote
| Quote: | Hi !
In few words dbExpress does not support Unicode.
Probably UTF8 will come through it (theoretically
speaking). At least, i was able to get that from
Oracle.
Yes, D8 is .Net application, so it works in Unicode
environment. But dbExpress is not. I think, D8 stupidly
converts strings as ASCII->Unicode.
Regards,
Dmitry
--
Dmitry Arefiev, gs-soft Company, community.gs-soft.com
Personal - www.da-soft.com
SAPx - Delphi to SAP R/3 direct access
Saphir - SAP R/3 metadata on your fingertips
MetaBase - ERWIN model in Delphi applications
NCOCI8 - Freeware Delphi to ORACLE direct access
Chris Hedges wrote:
Hi All,
I'm trying to convert a small test app from Delphi 6 which reads Chinese
text from a Firebird database with the charset set to UNICODE_FSS
and data access via DBExpress (TSQLConnection, TSQLTable, DatasetProvider
and ClientDataset)
In this D6 app to get round the Unicode issues, I used the TNT components
and TntStringfields to allow
the Unicode strings to display correctly.
I've now tried to move this app to Delphi 8 using the same DB and
equivalent
D8 controls.I thought that this would be an easy task as
I'm lead to believe D8 is natively Widestring now so I thought the data
would display correctly without
any third-party components such as TNT, but its seems I'm wrong as the
data
is displaying incorrectly.
So is DBExpress Unicode compatable or do I need to do some conversion of
the data before I am able
to display is properly? I understand the database holds all the data in
UTF8
format so what must I do to convert this into
a Widestring like the TNT components do?
Many thanks, I'm a bit of a n00b with Delphi 8 so any tips are welcome
(Jeez, what a project to learn Delphi 8 with!!!!!!)
Thanks
Chris Hedges
Tickets.com UK
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|