Re: unicode and frensh accents - Mailing list pgsql-php

From Miroslav Šulc
Subject Re: unicode and frensh accents
Date
Msg-id 422974E9.9010501@startnet.cz
Whole thread Raw
In response to Re: unicode and frensh accents  (Markus Bertheau <twanger@bluetwanger.de>)
List pgsql-php
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
>
>
>

Attachment

pgsql-php by date:

Previous
From: Markus Bertheau
Date:
Subject: Re: unicode and frensh accents
Next
From: "Stefan Hans"
Date:
Subject: --with-pgsql=shared