Page 1 of 1

TPgConnection.Options.UseUnicode setting and TPgLoader

Posted: Wed 22 Feb 2012 10:26
by jmuehlenhoff
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?

Posted: Thu 23 Feb 2012 12:51
by AlexP
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.

Posted: Fri 24 Feb 2012 09:49
by jmuehlenhoff
Does it hurt to set UseUnicode to True if there is no Unicode in the source TDataSet?

Posted: Fri 24 Feb 2012 14:23
by AlexP
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.