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 

TMemoField and Unicode

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Ramtin
Guest





PostPosted: Thu Jul 22, 2004 12:06 pm    Post subject: TMemoField and Unicode Reply with quote



Hi
Field editor adds TMemoField for "ntext" SQL type column, but added field
dosn't support Unicode.
Why?
K.Ramtin



Back to top
Marc Scheuner
Guest





PostPosted: Fri Jul 23, 2004 6:13 am    Post subject: Re: TMemoField and Unicode Reply with quote



Quote:
Field editor adds TMemoField for "ntext" SQL type column, but added field
dosn't support Unicode.

What RDBMS are you using?
What version of Delphi are you talking about?
How do you access your server?
What makes you think the field doesn't support Unicode?

Marc

Back to top
Ramtin
Guest





PostPosted: Sat Jul 24, 2004 9:11 am    Post subject: Re: TMemoField and Unicode Reply with quote



Hi
I use Delphi 7 and MS-SQL Server 2000 . I used dbExpress to connect to SQL
Server.Column type is ntext and field editor adds a TMemoField for it.I set
the value of the field using a TDBMemo control (with Arabic charset) and
After apply updates and then refresh (using CDS) , the value of the field is
incorrect and unreadable.

Thanks


Back to top
Ramtin
Guest





PostPosted: Sun Jul 25, 2004 9:25 am    Post subject: Re: TMemoField and Unicode Reply with quote

Hi
I use Delphi 7 and MS-SQL Server 2000 . I used dbExpress to connect to SQL
Server.Column type is ntext and field editor adds a TMemoField for it.I set
the value of the field using a TDBMemo control (with Arabic charset) and
After apply updates and then refresh (using CDS) , the value of the field is
incorrect and unreadable.

Thanks




Back to top
Marc Scheuner
Guest





PostPosted: Sun Jul 25, 2004 9:55 am    Post subject: Re: TMemoField and Unicode Reply with quote

Quote:
I use Delphi 7 and MS-SQL Server 2000 . I used dbExpress to connect to SQL
Server.Column type is ntext and field editor adds a TMemoField for it.I set
the value of the field using a TDBMemo control (with Arabic charset) and
After apply updates and then refresh (using CDS) , the value of the field is
incorrect and unreadable.

What collation and character set do you have you on your SQL Server
tables in question? Is that set so that it would support Arabic
characters?

Marc


Back to top
Dmitry Arefiev [gs-soft.r
Guest





PostPosted: Sun Jul 25, 2004 12:37 pm    Post subject: Re: TMemoField and Unicode Reply with quote

Hello !

You got in few problems:

1) Delphi TDataSet infrastructure does not support Unicode
BLOB fields directly. IOW, there is not TWideMemoField or
ftWideMemo data type. But TMemoField may be used. Just
set Transliterate = False. Or you can create TBlobField by
hands.

2) Borland MSSQL dbExpress driver does not support
Unicode. So, rather you should convert your field into binary
BLOB value. For example:
select cast(cast(Description as nvarchar) as varbinary) from Categories
As option, go with ADOExpress or Open ODBC dbExpress driver.

3) TDBMemo supports ANSI character set only. You should
use 3d party Unicode controls, for example:
http://tnt.ccci.org/delphi_unicode_controls

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

Ramtin wrote:
Quote:
Hi
Field editor adds TMemoField for "ntext" SQL type column, but added field
dosn't support Unicode.
Why?
K.Ramtin

Back to top
Alex Ehrlich
Guest





PostPosted: Mon Jul 26, 2004 7:54 pm    Post subject: Re: TMemoField and Unicode Reply with quote

Dmitry Arefiev [gs-soft.ru] wrote:
Quote:
2) Borland MSSQL dbExpress driver does not support
Unicode.
As option, go with ADOExpress or Open ODBC dbExpress driver.

Dmitry, do you mean OpenODBC dbExpress does support Unicode now (in
fact, any dbExpress)? It probably was you who told me about a year ago
that dbExpress doesn't.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) 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.