From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: Zouari Fourat <fourat@gmail.com>
Cc: pgsql-php@postgresql.org
Subject: Re: unicode and frensh accents
Date: Thu, 03 Mar 2005 22:28:04 +0800
Message-ID: <42271EF4.8090109@familyhealth.com.au> (raw)
In-Reply-To: <621eda8a0503030622837a19e@mail.gmail.com>
References: <621eda8a0503030622837a19e@mail.gmail.com>
> I have a problem displaying frensh data :
> my client encoding is set to UNICODE (same as phpPgAdmin)
> when selecting data with phpPgAdmin, there's no errors displaying
> accents and other special frensh caracters.
> but when selecting from my own script i dont get those frensh caracters.
> in my html pages i do :
> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
> like phpPgAdmin and there is allways problems displaying frensh data...
> anyone can help ?
Well, you can try sending an http header as well, before ANY of your
script's output:
header('Content-Type: text/html; charset=UTF-8');
Alternatively, try setting the client encoding to unicode with an sql
statement before running any queries, however that should not be
necessary as client encoding defaults to server encoding.
BTW, have a look at the printHeader() method in classes/Misc.php in
phpPgAdmin to see how we do it.
Chris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: chriskl@familyhealth.com.au, fourat@gmail.com
Subject: Re: unicode and frensh accents
In-Reply-To: <42271EF4.8090109@familyhealth.com.au>
References: <621eda8a0503030622837a19e@mail.gmail.com> <42271EF4.8090109@familyhealth.com.au>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox