Posted by Nick Iredale on 09/20/07 06:12
In a script I'm using successfully on a Linux server the code:
mb_language('uni');
mb_internal_encoding('UTF-8');
gives the error message:
Fatal error: Call to undefined function mb_language() in
W:\sites\play-school\httpdocs\contactar.php on line 2
on my PHP installation on my windows system.
I have php_mbstring.dll in E:\PHP\ext but think I haven't got it set up
correctly in php.ini:
In the Windows extensions section I have
extension=php_mbstring.dll and the extension directory is set to
extension_dir =E:\PHP\ext
I also have the following, most of which are commented out:
[mbstring]
; language for internal character representation.
mbstring.language = Neutral; Set default language to Neutral(UTF-8)
(default)
; internal/script encoding.
; Some encoding cannot work as internal encoding.
; (e.g. SJIS, BIG5, ISO-2022-*)
mbstring.internal_encoding = UTF-8 ; Set internal encoding to UTF-8
; http input encoding.
;mbstring.http_input = auto
; http output encoding. mb_output_handler must be
; registered as output buffer to function
;mbstring.http_output = SJIS
; enable automatic encoding translation according to
; mbstring.internal_encoding setting. Input chars are
; converted to internal encoding by setting this to On.
; Note: Do _not_ use automatic encoding translation for
; portable libs/applications.
;mbstring.encoding_translation = Off
; automatic encoding detection order.
; auto means
;mbstring.detect_order = auto
; substitute_character used when character cannot be converted
; one from another
;mbstring.substitute_character = none;
Any advice appreciated.
XP Pro / Apache 1.3.29 / PHP 5.2.0
--
Nick
--
Nick
[Back to original message]
|