diff --git a/ecrire/inc/surligne.php b/ecrire/inc/surligne.php index d84205287f6e1caef6015b1c5ae7c223ae653224..ecc20e8cc60ca6aa340201d93ef8c5e257b7267b 100644 --- a/ecrire/inc/surligne.php +++ b/ecrire/inc/surligne.php @@ -44,6 +44,7 @@ function surligner_mots($page) { if($surcharge_surligne=_request("var_recherche")) { $surcharge_surligne = preg_replace(",(?<!\\\\)((?:(?>\\\\){2})*)('),","$1\\\\$2",$surcharge_surligne); $surcharge_surligne = str_replace("\\","\\\\",$surcharge_surligne); + if($GLOBALS['meta']['charset']=='utf-8') $surcharge_surligne = utf8_encode($surcharge_surligne); } foreach($surlignejs_engines as $engine) if($surcharge_surligne || (preg_match($engine[0],$ref) && preg_match($engine[1],$ref))) {