[Lazarus] PostgreSQL database connection error
Mattias Gaertner
nc-gaertnma at netcologne.de
Thu May 29 07:55:05 CEST 2008
On Thu, 29 May 2008 05:04:12 +0800
peng <pengtu321 at gmail.com> wrote:
> Thank you, Michael, in accordance with your recommendations, has been
> successfully connected! However, some new problems, form In Chinese
> characters appear garbled. Details are as follows:
>
> 1, Lazarus new form, from 'sqldb' tab, add the three essential
> components, set up a number of attributes.
> 2, from 'Data Access' tab, add a component: TDataSource, set
> attributes DataSet.
> 3, from the 'Data Controls' tab, add a component: TDBGrid, set
> attributes DataSource.
>
> In this way, the editorial in the state of Lazarus, I can see TDBGird
> change from a blank into the full data. However, in the form of
> Chinese data garbled, even in the running after this. In an earlier
> time, I have tried to connect SQLite database, edit state is garbled,
> but in normal operation after RUN it. These two databases are UTF8
> encoding, it appears to be a big problem. I am very eager to see the
> Chinese in the data.
>
> UTF8 or ANSI, give me a recommendation? Thank you!
I would say UTF-8, but I didn't tried chinese. Did you try the current
lazarus from svn or daily snapshot?
http://wiki.lazarus.freepascal.org/LCL_Unicode_Support
Mattias
More information about the Lazarus
mailing list