ZenphotoCMS Forum
mbstring to UTF-8 - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: mbstring to UTF-8 (/thread-4849.html)



mbstring to UTF-8 - jeffjohn - 2009-03-14

Not particularly a problem, but in setup I get the alert:-
mbstring.internal_encoding to UTF-8 in your php.ini file recommended.
My PHP 5.9 info files include the following:-
mbstring
Multibyte Support enabled
Multibyte string engine libmbfl
Multibyte (japanese) regex support enabled
Multibyte regex (oniguruma) version 4.4.4
Multibyte regex (oniguruma) backtrack check On

mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.

Directive Local Value Master Value
mbstring.detect_order no value no value
mbstring.encoding_translation Off Off
mbstring.func_overload 0 0
mbstring.http_input pass pass
mbstring.http_output pass pass
mbstring.internal_encoding no value no value
mbstring.language neutral neutral
mbstring.strict_detection Off Off
mbstring.substitute_character no value no value

However I find no mention of any UTF-8 reference in the php.ini files.

Can you see anything I can modify; it is not really important but it intrigues me!

thanks jeffjohn




mbstring to UTF-8 - sbillard - 2009-03-14

mbstring.internal_encoding no value no value

this is what you should change.




mbstring to UTF-8 - jeffjohn - 2009-03-14

thanks sbillard; how do I do this exactly?




mbstring to UTF-8 - sbillard - 2009-03-14

Your site should provide an editor for changing the PHP.ini file. You will find a line there for hte mbstring.internal_encoding setting. Change it to be UTF-8. You may need to contact your provider if you cannot find the PHP.ini file or editor.




mbstring to UTF-8 - jeffjohn - 2009-03-15

Many thanks sbillard; setup runs without any alerts now after adding the line to php.ini. If I might risk another query, going to admin -> 'check updates', I see the following fault msg:- Fatal error: Call to undefined function sprinf() in C:\Program Files\Abyss Web Server\htdocs\zenphoto\zp-core\admin.php on line 1092

Are you able to give me information on this, please? thanks again - brilliant application - jeffjohn




mbstring to UTF-8 - acrylian - 2009-03-15

That's actually a typo, should be "sprintf". But admin.php does not have a line 1092, there are only 507.... Since you did not say which Zenphoto version you are using you might try the nightly as this typo seems to be already fixed.




mbstring to UTF-8 - jeffjohn - 2009-03-16

thanks again - upgraded and no problems now. jeffjohn




mbstring to UTF-8 - mikeque - 2009-11-30

As an alternative, this line seems to work, if you add it to the .htaccess file:
PHP_VALUE mbstring.internal_encoding UTF-8




mbstring to UTF-8 - Laurent - 2009-12-01

Thanks for this hack mikeque ;-)

Laurent