Re: unicode and frensh accents

Поиск
Список
Период
Сортировка
От Zouari Fourat
Тема Re: unicode and frensh accents
Дата
Msg-id 621eda8a0503030714e43bc79@mail.gmail.com
обсуждение исходный текст
Ответ на Re: unicode and frensh accents  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Ответы Re: unicode and frensh accents
Список pgsql-php
in phppgadmin, the statement
header('Content-Type: text/html; charset=UTF-8');

[root@apps pgadmin]# grep -r "header(" *
dataexport.php:                                 header("Location: {$url}");
dataexport.php:                                 header("Location: {$url}");
dataexport.php:                                 header("Location: {$url}");
dataexport.php:                         header('Content-Type: text/plain');
dataexport.php:                         header('Content-Type:
application/download');
dataexport.php:                         header('Content-Disposition:
attachment; filename=dump.' . $ext);
dataexport.php:                 header('Content-Type: text/plain');
dbexport.php:                           header('Content-Type: text/plain');
dbexport.php:                                   header('Content-Type:
text/plain');
dbexport.php:                                   header('Content-Type:
application/download');
dbexport.php:
header('Content-Disposition: attachment; filename=dump.sql');
dbexport.php:                           header('Content-Type:
application/download');
dbexport.php:                           header('Content-Disposition:
attachment; filename=dump.sql.gz');
help.php:                               header("Location: $url");
logout.php:header('Location: index.php');

in classes/Misc.php
there's
echo "<meta http-equiv=\"Content-Type\" content=\"text/html;
charset={$lang['appcharset']}\" />\n";

wich result in <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
same as i did ...

there's another thing that can be helpfull tracking my problem.
when getting data well formed in my explorer from phppgadmin and then
saving it to my hard disk and displaying it from its local location i
get the same problems.
and the line :
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
exists !


On Thu, 03 Mar 2005 22:28:04 +0800, Christopher Kings-Lynne
<chriskl@familyhealth.com.au> wrote:
> > 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
>

В списке pgsql-php по дате отправления:

Предыдущее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: unicode and frensh accents
Следующее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: unicode and frensh accents