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 

MySQL, unicode chars, delphi

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





PostPosted: Sun Jun 04, 2006 9:47 pm    Post subject: MySQL, unicode chars, delphi Reply with quote



Hi dudes,

I'm using MySQL 5.0.21 with Delphi 2005 update 3, I have a field in my table
(InnoDB, charset UTF8) that will store japanese chars. My Delphi win32 app
uses TtntDBEdit to display and get unicode chars, this app also uses MyDAC
(4.3) or MyComponentes (4.4 SciBit) components for connection. My problem is
that I cannot display nor store correctly these japanese chars from/to MySQL
server. Fields recovering with Delphi to use ADO with MS-Access are
TWideStringField type, but this doesnot happen with MySQL. Any suggestion to
resolve this?

Thanks.
Back to top
Guillem
Guest





PostPosted: Mon Jun 05, 2006 6:06 pm    Post subject: Re: MySQL, unicode chars, delphi Reply with quote



Billiardo Aragorn wrote:

Quote:
Hi dudes,

I'm using MySQL 5.0.21 with Delphi 2005 update 3, I have a field in
my table (InnoDB, charset UTF8) that will store japanese chars. My
Delphi win32 app uses TtntDBEdit to display and get unicode chars,
this app also uses MyDAC (4.3) or MyComponentes (4.4 SciBit)
components for connection. My problem is that I cannot display nor
store correctly these japanese chars from/to MySQL server. Fields
recovering with Delphi to use ADO with MS-Access are TWideStringField
type, but this doesnot happen with MySQL. Any suggestion to resolve
this?

Thanks.

AFAIK there is no OLE DB provider for MySQL. How are you accessing it?
Via ADO+ODBC? Using the .NET provider for MySQL?

--
Best regards :)

Guillem Vicens Meier
Dep. Informatica Green Service S.A.
www.clubgreenoasis.com
--
Contribute to the Indy Docs project: http://docs.indyproject.org
--
In order to contact me remove the -nospam
Back to top
Billiardo Aragorn
Guest





PostPosted: Mon Jun 05, 2006 6:19 pm    Post subject: Re: MySQL, unicode chars, delphi Reply with quote



AFAIK? There are several ways to access MySQL: ADO+ODBC, MyDAC,
MyComponents, DBExpress, etc. I'm using MyDAC or MyComponents for my Win32
App.

"Guillem" <guillemvicens-nospam (AT) clubgreenoasis (DOT) com> escribió en el mensaje
news:xn0en49nqcghn3001 (AT) newsgroups (DOT) borland.com...
Quote:
Billiardo Aragorn wrote:

Hi dudes,

I'm using MySQL 5.0.21 with Delphi 2005 update 3, I have a field in
my table (InnoDB, charset UTF8) that will store japanese chars. My
Delphi win32 app uses TtntDBEdit to display and get unicode chars,
this app also uses MyDAC (4.3) or MyComponentes (4.4 SciBit)
components for connection. My problem is that I cannot display nor
store correctly these japanese chars from/to MySQL server. Fields
recovering with Delphi to use ADO with MS-Access are TWideStringField
type, but this doesnot happen with MySQL. Any suggestion to resolve
this?

Thanks.

AFAIK there is no OLE DB provider for MySQL. How are you accessing it?
Via ADO+ODBC? Using the .NET provider for MySQL?

--
Best regards :)

Guillem Vicens Meier
Dep. Informatica Green Service S.A.
www.clubgreenoasis.com
--
Contribute to the Indy Docs project: http://docs.indyproject.org
--
In order to contact me remove the -nospam
Back to top
Guillem
Guest





PostPosted: Mon Jun 05, 2006 7:32 pm    Post subject: Re: MySQL, unicode chars, delphi Reply with quote

Billiardo Aragorn wrote:

Quote:
AFAIK? There are several ways to access MySQL: ADO+ODBC,

which does not use a specific OLE DB provider for MySQL. In fact it
needs an ODBC provider.

Quote:
MyDAC, MyComponents

these are native components and do not use the ADO layer

Quote:
DBExpress, etc.

these are unidirectional light-weight data access components created by
Borland which do not use the ADO layer

Quote:
I'm using MyDAC or MyComponents for my
Win32 App.


ok, since you spoke about ADO I assumed you were using it. To use ADO
you need either an OLE DB provider or an ODBC provider (if you use
ADO+ODBC) or a ADO.NET provider (when programming in .NET). That's the
origin of my question.

I haven't used MyDAC but I know they support Unicode so that should not
be the problem (unless there is some bug). Maybe you have to configure
specifically the MyDAC components to allow Unicode?

--
Best regards :)

Guillem Vicens Meier
Dep. Informatica Green Service S.A.
www.clubgreenoasis.com
--
Contribute to the Indy Docs project: http://docs.indyproject.org
--
In order to contact me remove the -nospam
Back to top
Daniel Szasz
Guest





PostPosted: Wed Jun 07, 2006 5:09 pm    Post subject: Re: MySQL, unicode chars, delphi Reply with quote

Didn't succed to make the MyDAC to work with Unicode.

Daniel

"Guillem" <guillemvicens-nospam (AT) clubgreenoasis (DOT) com> wrote in message
news:xn0en4bvkfiv8s000 (AT) newsgroups (DOT) borland.com...
Quote:
Billiardo Aragorn wrote:

AFAIK? There are several ways to access MySQL: ADO+ODBC,

which does not use a specific OLE DB provider for MySQL. In fact it
needs an ODBC provider.

MyDAC, MyComponents

these are native components and do not use the ADO layer

DBExpress, etc.

these are unidirectional light-weight data access components created by
Borland which do not use the ADO layer

I'm using MyDAC or MyComponents for my
Win32 App.


ok, since you spoke about ADO I assumed you were using it. To use ADO
you need either an OLE DB provider or an ODBC provider (if you use
ADO+ODBC) or a ADO.NET provider (when programming in .NET). That's the
origin of my question.

I haven't used MyDAC but I know they support Unicode so that should not
be the problem (unless there is some bug). Maybe you have to configure
specifically the MyDAC components to allow Unicode?

--
Best regards :)

Guillem Vicens Meier
Dep. Informatica Green Service S.A.
www.clubgreenoasis.com
--
Contribute to the Indy Docs project: http://docs.indyproject.org
--
In order to contact me remove the -nospam
Back to top
Guillem
Guest





PostPosted: Thu Jun 08, 2006 6:10 pm    Post subject: Re: MySQL, unicode chars, delphi Reply with quote

Daniel Szasz wrote:

Quote:
Didn't succed to make the MyDAC to work with Unicode.

Daniel


I'm sorry but I'm out of ideas. You'll have to ask the MyDAC people

Good luck

--
Best regards :)

Guillem Vicens Meier
Dep. Informatica Green Service S.A.
www.clubgreenoasis.com
--
Contribute to the Indy Docs project: http://docs.indyproject.org
--
In order to contact me remove the -nospam
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.