| View previous topic :: View next topic |
| Author |
Message |
Ramtin Guest
|
Posted: Thu Jul 22, 2004 12:06 pm Post subject: TMemoField and Unicode |
|
|
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
|
Posted: Fri Jul 23, 2004 6:13 am Post subject: Re: TMemoField and Unicode |
|
|
| 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
|
Posted: Sat Jul 24, 2004 9:11 am Post subject: Re: TMemoField and Unicode |
|
|
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
|
Posted: Sun Jul 25, 2004 9:25 am Post subject: Re: TMemoField and Unicode |
|
|
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
|
Posted: Sun Jul 25, 2004 9:55 am Post subject: Re: TMemoField and Unicode |
|
|
| 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
|
Posted: Sun Jul 25, 2004 12:37 pm Post subject: Re: TMemoField and Unicode |
|
|
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
|
Posted: Mon Jul 26, 2004 7:54 pm Post subject: Re: TMemoField and Unicode |
|
|
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 |
|
 |
|