On a fresh install of slimstat, I receive several warning messages
stating "Warning: mb_convert_encoding(): Illegal character encoding
specified in /srv/www/vhosts/xxx/slimstat/_functions.php on line 553"
The offending line is:
return mb_convert_encoding( strftime( "%H:%M", $_dt ), "UTF-8", "BIG-5"
);
Is it safe to use time_label() from version 0.9 to get rid of those
warnings?
Regards,
Robert
Anyone have any ideas?
This is shown at my Slimstat page where there should be stats. The
navbar and other slimstat content is shown.
No errors during installation.
//skoggy
Yes, you can use time_label() from version 0.9 of SlimStat to get rid
of those warnings. It's otherwise identical and will be compatible.
If you don't have a copy of it, it's still here:
http://wettone.com/code/download/slimstat-0.9-no-country.zip
Alternatively, you can edit it to remove the calls to
mb_convert_encoding() and it will work fine. So lines like this:
return mb_convert_encoding( strftime( "%H:%M", $_dt ), "UTF-8",
"BIG-5" );
should look like this:
return strftime( "%H:%M", $_dt );
They were added to handle conversion of the Chinese characters, and
if you're not using Chinese then you won't notice the difference. I'm
clearly going to have to re-jig things so that the character
conversion is done in a more sensible place.
Cheers, and sorry for the delay in replying.
Stephen
Thanks!