utf8 problems

Found a bug? Tell us!!
Post Reply
computx
Posts: 4
Joined: Fri Sep 01, 2006 8:55 am
Contact:

utf8 problems

Post by computx »

I run a Gentoo system. I just did a ton of updates to the system (but not serendipity) and now I am getting this error message when I try to view my blog


Fatal error: Call to undefined function: utf8_decode() in /home/httpd/htdocs/blog/include/functions_permalinks.inc.php on line 115

I looked at that peice of php
It looks like this
} else {
// Replace international chars not detected by every locale
if (LANG_CHARSET == 'UTF-8') {
// URLs need to be 7bit - since this function takes care of the mos$ // characters, try to UTF8-decode the string first.
$str = utf8_decode($str);
}

Line 115 is this
$str = utf8_decode($str);

I am in the us and doubt I need international language support. Anyone have an idea on this?
Can I just route around that function? I am not a php programmer so I am clueless at this point.
version is fairly recent just installed about August 1.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: utf8 problems

Post by garvinhicking »

Hi!

Your PHP is missing the XML extension. This is a usual default library and is also needed for other places. You definitely need to include that in your PHP compliation.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
computx
Posts: 4
Joined: Fri Sep 01, 2006 8:55 am
Contact:

Post by computx »

Thanks for the help. I just discovered that with gentoo's php4 package one has to use the expat use flag as well as xml. I recompiled and all is well.
Post Reply