Re: Characters

From: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
To: "P(dot) Broennimann" <peter(dot)broennimann(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Characters
Date: 2013-04-10 14:17:54
Message-ID: 51657492.5020508@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 04/10/2013 02:53 AM, P. Broennimann wrote:
> Hi there
>
> I am using PG 9.2 and 'pg_database' shows 'en_US.UTF-8'.
>
> I have a text 'Piqué' but this is shown in my application as 'Piqu?' so
> I was wondering where the problem is?
>
> I am using Devart's 'PostgreSQL Data Access Components' to access PG
> from FreePascal.
>
> In my FreePascal code I do use AnsiStrings and I cast the database
> results/text 'UTF8ToAnsi(...)'
>
> Thanks for a hint!

Just guessing, but from FreePascal docs:

http://www.freepascal.org/docs-html/rtl/system/utf8toansi.html

"
Description

Utf8ToAnsi converts an utf8-encode unicode string to an ansistring. It
converts the string to a widestring and then converts the widestring to
an ansistring.

For this function to work, a widestring manager must be installed.
"

Is there a widestring manager?

http://www.freepascal.org/docs-html/rtl/system/setwidestringmanager.html

>
> Cheers,
> P.
>
>

--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com

In response to

  • Characters at 2013-04-10 09:53:42 from P. Broennimann

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Shaun Thomas 2013-04-10 14:34:35 Re: how to find which tables required indexes in postgresql
Previous Message Michael Paquier 2013-04-10 14:11:09 Re: how to find which tables required indexes in postgresql