pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Miroslav Šulc <miroslav.sulc@startnet.cz>
To: Markus Bertheau <twanger@bluetwanger.de>
Cc: Zouari Fourat <fourat@gmail.com>
Cc: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Cc: pgsql-php@postgresql.org
Subject: Re: unicode and frensh accents
Date: Sat, 05 Mar 2005 09:59:21 +0100
Message-ID: <422974E9.9010501@startnet.cz> (raw)
In-Reply-To: <1109982973.4308.6.camel@umnik>
References: <621eda8a0503030622837a19e@mail.gmail.com>
	<42271EF4.8090109@familyhealth.com.au>
	<621eda8a0503030714e43bc79@mail.gmail.com>
	<42272C2B.7030903@familyhealth.com.au>
	<621eda8a050303075141e910a4@mail.gmail.com>
	<1109982973.4308.6.camel@umnik>

Maybe you could send us the code that retrieves the data from PostgreSQL.

I personally use 'pg_set_client_encoding($link, 'UNICODE');' before I 
get data from server to be sure I get it in utf-8 encoding. Other thing 
that might be a problem is that default Apache configuration file 
contains 'AddDefaultCharset ISO-8859-1' instruction which sets default 
charset in case the Apache cannot find one in the page. Disabling this 
makes characters unmangled (it may and probably should by solved other 
way but I didn't spend my time on figuring how).

Miroslav Šulc



Markus Bertheau wrote:

>У Чтв, 2005-03-03 у 16:51 +0100, Zouari Fourat пише:
>  
>
>>ok i admit...
>>that last one is wrong, the page when saved displays well formed data...
>>
>>but what about header('... charset=UTF-8 statement ? it doesnt occur
>>in phppgadmin files ...
>>    
>>
>
>Right, we don't set it. Usually Apache does if not told otherwise.
>
>What do you get from your own script? Best make a screenshot.
>
>Markus
>
>  
>

Attachments:

miroslav.sulc.vcf (text/x-vcard, 401B) download begin:vcard fn;quoted-printable:Miroslav =C5=A0ulc n;quoted-printable:=C5=A0ulc;Miroslav org:StartNet s.r.o. adr;quoted-printable;quoted-printable:;;Vrchlick=C3=A9ho 161/5;Praha 5;;150 00;=C4=8Cesk=C3=A1 republika email;internet:miroslav.sulc@startnet.cz title:CEO tel;work:+420 257 225 602 tel;cell:+420 603 711 413 x-mozilla-html:TRUE url:http://www.startnet.cz version:2.1 end:vcard

view thread (7+ messages)

Message-ID: <422974E9.9010501@startnet.cz>
Permalink:  ../422974E9.9010501@startnet.cz/
Also on:    postgresql.org/message-id/422974E9.9010501@startnet.cz

 · 

reply

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: miroslav.sulc@startnet.cz, twanger@bluetwanger.de, fourat@gmail.com, chriskl@familyhealth.com.au
  Subject: Re: unicode and frensh accents
  In-Reply-To: <422974E9.9010501@startnet.cz>
  References: <621eda8a0503030622837a19e@mail.gmail.com> <42271EF4.8090109@familyhealth.com.au> <621eda8a0503030714e43bc79@mail.gmail.com> <42272C2B.7030903@familyhealth.com.au> <621eda8a050303075141e910a4@mail.gmail.com> <1109982973.4308.6.camel@umnik> <422974E9.9010501@startnet.cz>

* 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