Thread: Snake Php configuration

Snake Php configuration

From
Jean-Michel POURE
Date:
Dear Mark or Dave,

Languages do not display well under Snake because of an UTF-8 problem.

Php is currently compiled with:
'./configure' '--without-mysql' '--with-pgsql=/usr/local/pgsql'
'--with-gettext' '--with-apxs=/usr/local/apache/bin/apxs'

It should also carry this additional option:
--with-iconv --enable-mbstring=all

Then, restart Apache and connect to pgadmin3/phpinfo.php.
You should read the environment variable:
_ENV[locale]=en_US

When it is done, please drop me an email, I will upload the required code to
display UTF-8 data.

Cheers,
Jean-Michel


Re: Snake Php configuration

From
Jean-Michel POURE
Date:
On Friday 01 August 2003 14:44, Jean-Michel POURE wrote:
> When it is done, please drop me an email, I will upload the required code
> to display UTF-8 data.

After PHP installation on Snake, if you want to test UTF-8 display yourself:

- open pgadmin3/class/pgadmin_session.php
- uncomment line 42,
- comment line 43

Connect to pgadmin3/index.php and select the French language.
You should be able to see the accentuated characters.

Otherwise, it might be a locale configuration problem under GNU/Linux. The
first thing to do before tweaking the system is to build PHP with iconv
(inconv needed on the system, does not seem to be installed on Snake) and
mb_string support.

When/if it is done, please drop me an email. Thanks for your help.

Cheers,
Jean-Michel


Re: Snake Php configuration

From
Jean-Michel POURE
Date:
Dear all,

I could tweak the PHP scripts to display UTF-8 data, but it is not very
interesting. Now and then, if you have time, compiling PHP with iconv would
be great.

Cheers,
Jean-Michel

> Dear Mark or Dave,
>
> Languages do not display well under Snake because of an UTF-8 problem.
>
> Php is currently compiled with:
> './configure' '--without-mysql' '--with-pgsql=/usr/local/pgsql'
> '--with-gettext' '--with-apxs=/usr/local/apache/bin/apxs'
>
> It should also carry this additional option:
> --with-iconv --enable-mbstring=all
>
> Then, restart Apache and connect to pgadmin3/phpinfo.php.
> You should read the environment variable:
> _ENV[locale]=en_US
>
> When it is done, please drop me an email, I will upload the required code
> to display UTF-8 data.
>
> Cheers,
> Jean-Michel
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
>                http://archives.postgresql.org