BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Delphi 8 and Unicode

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress)
View previous topic :: View next topic  
Author Message
Chris Hedges
Guest





PostPosted: Wed Sep 15, 2004 3:42 pm    Post subject: Delphi 8 and Unicode Reply with 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
Dmitry Arefiev [gs-soft.r
Guest





PostPosted: Thu Sep 16, 2004 7:16 pm    Post subject: Re: Delphi 8 and Unicode Reply with 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:
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





PostPosted: Fri Sep 17, 2004 8:53 am    Post subject: Re: Delphi 8 and Unicode Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.