mbstring functions undefined

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
benphp
Forum Newbie
Posts: 1
Joined: Mon Jul 03, 2006 5:38 am

mbstring functions undefined

Post by benphp »

Please help.

I'm trying to use the mb_detect_encoding function to determine the character encoding of strings, but I can't use it.
In fact, other mbstring functions (e.g. mb_strlen) give problems too. The error is this:
Fatal error: Call to undefined function mb_detect_encoding() in c:\Inetpub\wwwroot\p4.php on line 56

In php.ini, the extension_dir is set to the appropriate path and the php_mbstring.dll extension is uncommented. Further settings are:
mbstring.language = Neutral
mbstring.internal_encoding = UTF-8
mbstring.http_input = UTF-8
mbstring.http_output = UTF-8
mbstring.encoding_translation = On
mbstring.substitute_character = ?
mbstring.func_overload = 7

I don't understand why these functions are not recognized. Suggestions are more than welcome.

Thanks
Post Reply