Enabling Multibyte in postgresql / drupal Mac OS X Leopard stack

Enabling Multibyte in postgresql / drupal Mac OS X Leopard stack

am 02.12.2008 20:26:12 von jeroen

I recently downloaded and installed postgresql and drupal and
mediawiki for Mac OS Leopard, using the stack from postgresql.org.

It is very cool!

However, the drupal admin states that php multibyte strings (mbstring)
is not enabled.
I tried following the instructions on various searches, without success.

If any one has been able to enable php mbstring on Mac OS Leopard php
for drupal / mediawiki, using postgresql as their dbs, please let me
know.

Any information would be much appreciated.

thanks

--
-jeroen



--
Sent via pgsql-php mailing list (pgsql-php@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php

Re: Enabling Multibyte in postgresql / drupal Mac OS X Leopardstack

am 02.12.2008 21:26:09 von Andreas Wenk

Hi Jeron,

I am running Leopard 10.5.5. with the entropy php package. I don't know
if that helps, but I just added the following line to a vhost container
for apache:

php_value mbstring.func_overload 7

It was just a random test, but it works without problems. I don't think
that your problem is a specific problem concerning drupal / mediawiki
with postgresql. I think this is a php apache problem (if it is a problem).

Again, don't know if that helps anyway. But it's a hint, that it works
for me.

Cheers

Andy

--
Andy Wenk
Hamburg - Germany

jeroen@madmemelabs.com schrieb:
> I recently downloaded and installed postgresql and drupal and
> mediawiki for Mac OS Leopard, using the stack from postgresql.org.
>
> It is very cool!
>
> However, the drupal admin states that php multibyte strings (mbstring)
> is not enabled.
> I tried following the instructions on various searches, without success.
>
> If any one has been able to enable php mbstring on Mac OS Leopard php
> for drupal / mediawiki, using postgresql as their dbs, please let me
> know.
>
> Any information would be much appreciated.
>
> thanks
>
> --
> -jeroen
>
>
>



--
Sent via pgsql-php mailing list (pgsql-php@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php

Re: Enabling Multibyte in postgresql / drupal Mac OS X Leopardstack

am 02.12.2008 21:36:58 von Andreas Wenk

Hi Jerone,

I am running a MAC Leopard 10.5.5. Installed is the entropy php /
postgresql package. I just added the following lines to one of the vhost
container:

php_value mbstring.func_overload 7

After restarting apache and calling mb_get_info(), I recieve this result:

Array
(
[internal_encoding] => ISO-8859-1
[http_input] =>
[http_output] => pass
[func_overload] => 7
[func_overload_list] => Array
(
[mail] => mb_send_mail
[strlen] => mb_strlen
[strpos] => mb_strpos
[strrpos] => mb_strrpos
[stripos] => mb_stripos
[strripos] => mb_strripos
[strstr] => mb_strstr
[strrchr] => mb_strrchr
[stristr] => mb_stristr
[substr] => mb_substr
[strtolower] => mb_strtolower
[strtoupper] => mb_strtoupper
[substr_count] => mb_substr_count
[ereg] => mb_ereg
[eregi] => mb_eregi
[ereg_replace] => mb_ereg_replace
[eregi_replace] => mb_eregi_replace
[split] => mb_split
)

[mail_charset] => UTF-8
[mail_header_encoding] => BASE64
[mail_body_encoding] => BASE64
[illegal_chars] => 0
[encoding_translation] => Off
[language] => neutral
[detect_order] => Array
(
[0] => ASCII
[1] => UTF-8
)

[substitute_character] => 63
[strict_detection] => Off
)

Means, it works.

I don't think that your problem is a drupal /mediawiki with postgresql
problem, but an apache php problem.

Do you have a mbstring entry when you call phpinfo() ?

Again, I don't know if that helps. It's just a hint that it works on my MAC.

Cheers

Andy

--
----------------------------------
Netzmeister St.Pauli

St.Pauli - Hamburg - Germany


jeroen@madmemelabs.com schrieb:
> I recently downloaded and installed postgresql and drupal and
> mediawiki for Mac OS Leopard, using the stack from postgresql.org.
>
> It is very cool!
>
> However, the drupal admin states that php multibyte strings (mbstring)
> is not enabled.
> I tried following the instructions on various searches, without success.
>
> If any one has been able to enable php mbstring on Mac OS Leopard php
> for drupal / mediawiki, using postgresql as their dbs, please let me
> know.
>
> Any information would be much appreciated.
>
> thanks
>
> --
> -jeroen
>
>
>



--
Sent via pgsql-php mailing list (pgsql-php@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php

Re: Enabling Multibyte in postgresql / drupal Mac OS X

am 02.12.2008 22:31:51 von jeroen

Hi Andreas,

this is helpful. I'll give it a try.

much thanks
-jeroen

Quoting Andreas Wenk :

> Hi Jerone,
>
> I am running a MAC Leopard 10.5.5. Installed is the entropy php /
> postgresql package. I just added the following lines to one of the
> vhost container:
>
> php_value mbstring.func_overload 7
>
> After restarting apache and calling mb_get_info(), I recieve this result:
>
> Array
> (
> [internal_encoding] =3D> ISO-8859-1
> [http_input] =3D>
> [http_output] =3D> pass
> [func_overload] =3D> 7
> [func_overload_list] =3D> Array
> (
> [mail] =3D> mb_send_mail
> [strlen] =3D> mb_strlen
> [strpos] =3D> mb_strpos
> [strrpos] =3D> mb_strrpos
> [stripos] =3D> mb_stripos
> [strripos] =3D> mb_strripos
> [strstr] =3D> mb_strstr
> [strrchr] =3D> mb_strrchr
> [stristr] =3D> mb_stristr
> [substr] =3D> mb_substr
> [strtolower] =3D> mb_strtolower
> [strtoupper] =3D> mb_strtoupper
> [substr_count] =3D> mb_substr_count
> [ereg] =3D> mb_ereg
> [eregi] =3D> mb_eregi
> [ereg_replace] =3D> mb_ereg_replace
> [eregi_replace] =3D> mb_eregi_replace
> [split] =3D> mb_split
> )
>
> [mail_charset] =3D> UTF-8
> [mail_header_encoding] =3D> BASE64
> [mail_body_encoding] =3D> BASE64
> [illegal_chars] =3D> 0
> [encoding_translation] =3D> Off
> [language] =3D> neutral
> [detect_order] =3D> Array
> (
> [0] =3D> ASCII
> [1] =3D> UTF-8
> )
>
> [substitute_character] =3D> 63
> [strict_detection] =3D> Off
> )
>
> Means, it works.
>
> I don't think that your problem is a drupal /mediawiki with postgresql
> problem, but an apache php problem.
>
> Do you have a mbstring entry when you call phpinfo() ?
>
> Again, I don't know if that helps. It's just a hint that it works on my M=
AC.
>
> Cheers
>
> Andy
>
> --=20
> ----------------------------------
> Netzmeister St.Pauli
>
> St.Pauli - Hamburg - Germany
>
>
> jeroen@madmemelabs.com schrieb:
>> I recently downloaded and installed postgresql and drupal and
>> mediawiki for Mac OS Leopard, using the stack from postgresql.org.
>>
>> It is very cool!
>>
>> However, the drupal admin states that php multibyte strings (mbstring)
>> is not enabled.
>> I tried following the instructions on various searches, without success.
>>
>> If any one has been able to enable php mbstring on Mac OS Leopard php
>> for drupal / mediawiki, using postgresql as their dbs, please let me
>> know.
>>
>> Any information would be much appreciated.
>>
>> thanks
>>
>> --=20
>> -jeroen
>>
>>
>>
>
>
>
> --=20
> Sent via pgsql-php mailing list (pgsql-php@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-php




--=20
Sent via pgsql-php mailing list (pgsql-php@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php

Re: Enabling Multibyte in postgresql / drupal Mac OS X Leopardstack

am 02.12.2008 22:59:03 von dmagick

jeroen@madmemelabs.com wrote:
> I recently downloaded and installed postgresql and drupal and
> mediawiki for Mac OS Leopard, using the stack from postgresql.org.
>
> It is very cool!
>
> However, the drupal admin states that php multibyte strings (mbstring)
> is not enabled.
> I tried following the instructions on various searches, without success.
>
> If any one has been able to enable php mbstring on Mac OS Leopard php
> for drupal / mediawiki, using postgresql as their dbs, please let me
> know.

mb* functions are something that are either there or not, it's not an
extension you can install later on for php.

To get it, you have to recompile php.

http://www.php.net/manual/en/mbstring.installation.php

You can see if it's enabled at all by creating a phpinfo page and
viewing it in your browser and search for 'multibyte'. If it's not
there, you don't have it and you have to recompile php.

--
Postgresql & php tutorials
http://www.designmagick.com/


--
Sent via pgsql-php mailing list (pgsql-php@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php

Re: Enabling Multibyte in postgresql / drupal Mac OS X

am 02.12.2008 23:22:17 von jeroen

Chris,

this is good to know also. Sorry, I'm new to this. ;)

thanks
-jeroen

Quoting Chris :

> jeroen@madmemelabs.com wrote:
>> I recently downloaded and installed postgresql and drupal and
>> mediawiki for Mac OS Leopard, using the stack from postgresql.org.
>>
>> It is very cool!
>>
>> However, the drupal admin states that php multibyte strings (mbstring)
>> is not enabled.
>> I tried following the instructions on various searches, without success.
>>
>> If any one has been able to enable php mbstring on Mac OS Leopard php
>> for drupal / mediawiki, using postgresql as their dbs, please let me
>> know.
>
> mb* functions are something that are either there or not, it's not an
> extension you can install later on for php.
>
> To get it, you have to recompile php.
>
> http://www.php.net/manual/en/mbstring.installation.php
>
> You can see if it's enabled at all by creating a phpinfo page and
> viewing it in your browser and search for 'multibyte'. If it's not
> there, you don't have it and you have to recompile php.
>
> --=20
> Postgresql & php tutorials
> http://www.designmagick.com/
>
>
> --=20
> Sent via pgsql-php mailing list (pgsql-php@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-php




--=20
Sent via pgsql-php mailing list (pgsql-php@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php