X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fgeoloc.inc.php;h=89abd27ce819275473d26d9873331b6d70ccb0c9;hb=f3a7456dbe1cbe78dfe0ccc2e99c299ad97203c5;hp=758c0e850391ac9e1f432085c6434909d5fd20d9;hpb=3d1a2c7d95b71857f77ab08c3ce8104833ad3c66;p=platal.git diff --git a/include/geoloc.inc.php b/include/geoloc.inc.php index 758c0e8..89abd27 100644 --- a/include/geoloc.inc.php +++ b/include/geoloc.inc.php @@ -1,6 +1,6 @@ fetchOneCell(); } @@ -232,8 +244,8 @@ function get_address_text($adr) */ function compare_addresses_text($a, $b) { - $ta = strtoupper(preg_replace(array("/[0-9,\"'#~:;_\- ]/", "/\r\n/"), array("", "\n"), $a)); - $tb = strtoupper(preg_replace(array("/[0-9,\"'#~:;_\- ]/", "/\r\n/"), array("", "\n"), $b)); + $ta = mb_strtoupper(preg_replace(array("/[0-9,\"'#~:;_\- ]/", "/\r\n/"), array("", "\n"), $a)); + $tb = mb_strtoupper(preg_replace(array("/[0-9,\"'#~:;_\- ]/", "/\r\n/"), array("", "\n"), $b)); $la = explode("\n", $ta); $lb = explode("\n", $tb);