Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid UTF-8 string at offset 163 in C:\wamp\www\phpbugs_wiki\inc\utf8.php on line 423
Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid UTF-8 string at offset 163 in C:\wamp\www\phpbugs_wiki\inc\utf8.php on line 423
These 2 errors on top of the page.
Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid UTF-8 string at offset 163 in C:\wamp\www\phpbugs_wiki\inc\utf8.php on line 423
Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid UTF-8 string at offset 163 in C:\wamp\www\phpbugs_wiki\inc\utf8.php on line 423
these 2 additional errors in the "content" section.
fresh install and i get these errors.
I went in inc/utf8.php line 422,
if(!function_exists('utf8_stripspecials')){
/**
* Removes special characters (nonalphanumeric) from a UTF-8 string
*
* This function adds the controlchars 0x00 to 0x19 to the array of
* stripped chars (they are not included in $UTF8_SPECIAL_CHARS)
*
* @author Andreas Gohr <
andi@splitbrain.org>
* @param string $string The UTF8 string to strip of special chars
* @param string $repl Replace special with this string
* @param string $additional Additional chars to strip (used in regexp char class)
*/
function utf8_stripspecials($string,$repl='',$additional=''){
global $UTF8_SPECIAL_CHARS;
global $UTF8_SPECIAL_CHARS2;
static $specials = null;
if(is_null($specials)){
#$specials = preg_quote(unicode_to_utf8($UTF8_SPECIAL_CHARS), '/');
$specials = preg_quote($UTF8_SPECIAL_CHARS2, '/');
}
return $string;
return preg_replace('/['.$additional.'\x00-\x19'.$specials.']/u',$repl,$string);
}
}
returned the raw string and the errors went away.