TPgConnection.Options.UseUnicode setting and TPgLoader

Discussion of open issues, suggestions and bugs regarding PgDAC (PostgreSQL Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
jmuehlenhoff
Posts: 36
Joined: Fri 30 Apr 2010 11:25

TPgConnection.Options.UseUnicode setting and TPgLoader

Post by jmuehlenhoff » Wed 22 Feb 2012 10:26

Hi,

I'm trying to figure out what the UseUnicode setting does when I use a TPgLoader (on Delphi 2007).

The source data comes from another TDataSet, so I just call PgLoader.LoadFromDataSet.

How does PgDAC behave when UseUnicode is set to True vs. when it is set to False?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Thu 23 Feb 2012 12:51

Hello,

Setting the UseUnicode property to true allows to work with the specific UniCode symbols, i.e. if your source DataSet includes fields with the UniCode symbols, then, for correct uploading such data to the server, you should enable this options. If the DataSet doesn't include the UniCode symbols, there is no need to use this option.

jmuehlenhoff
Posts: 36
Joined: Fri 30 Apr 2010 11:25

Post by jmuehlenhoff » Fri 24 Feb 2012 09:49

Does it hurt to set UseUnicode to True if there is no Unicode in the source TDataSet?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Fri 24 Feb 2012 14:23

Hello,

Setting the UseUniCode property to True will not affect the TPgLoader work in any way, if there is no UniCode symbols in a DataSet.

Post Reply