=^.^=

Fix Missing mbstring Functions in PHP on Gentoo

If your web software complains about missing MultiByte String (mb_*) functions like so:

Call to undefined function mb_internal_encoding()

Add the USE flag 'nls' for versions 5.1 and under, 'unicode' for versions 5.1 and over then rebuild:

# USE="unicode" emerge --newuse php --ask

...

[ebuild   R    ] dev-lang/php-5.3.8  USE="unicode*"

Comments

• Jan

Thank you. I was trying to see about installing the Extension:Semantic MediaWiki which requires PHP mb_*() multibyte functions such as mb_strpos in the php_mbstring.dll extension. This is standard but not enabled by default on some distributions of PHP.

This was an easy answer