Re: unicode and frensh accents

From: Miroslav Šulc <miroslav(dot)sulc(at)startnet(dot)cz>
To: Markus Bertheau <twanger(at)bluetwanger(dot)de>
Cc: Zouari Fourat <fourat(at)gmail(dot)com>, Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, pgsql-php(at)postgresql(dot)org
Subject: Re: unicode and frensh accents
Date: 2005-03-05 08:59:21
Message-ID: 422974E9.9010501@startnet.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
miroslav.sulc.vcf text/x-vcard 401 bytes

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Stefan Hans 2005-03-07 11:09:38 --with-pgsql=shared
Previous Message Markus Bertheau 2005-03-05 00:36:13 Re: unicode and frensh accents