From a5fde76c26b9b57524617e2fca07093aa641ce37 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 9 Dec 2004 00:16:33 +0000 Subject: [PATCH] Comment the unicode blocks. git-svn-id: https://develop.svn.wordpress.org/trunk@1925 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions-formatting.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-includes/functions-formatting.php b/wp-includes/functions-formatting.php index 350fe6112a..3c49d64295 100644 --- a/wp-includes/functions-formatting.php +++ b/wp-includes/functions-formatting.php @@ -131,7 +131,8 @@ function utf8_uri_encode( $utf8_string ) { function remove_accents($string) { if (seems_utf8($string)) { - $chars = array(chr(195).chr(128) => 'A', chr(195).chr(129) => 'A', + $chars = array(// Decompositions for Latin-1 Supplement + chr(195).chr(128) => 'A', chr(195).chr(129) => 'A', chr(195).chr(130) => 'A', chr(195).chr(131) => 'A', chr(195).chr(132) => 'A', chr(195).chr(133) => 'A', chr(195).chr(135) => 'C', chr(195).chr(136) => 'E', @@ -158,9 +159,12 @@ function remove_accents($string) { chr(195).chr(185) => 'u', chr(195).chr(186) => 'u', chr(195).chr(187) => 'u', chr(195).chr(188) => 'u', chr(195).chr(189) => 'y', chr(195).chr(191) => 'y', + // Decompositions for Latin Extended-A + // TODO: Finish me. chr(197).chr(146) => 'OE', chr(197).chr(147) => 'oe', chr(197).chr(160) => 'S', chr(197).chr(161) => 's', chr(197).chr(189) => 'Z', chr(197).chr(190) => 'z', + // Euro Sign chr(226).chr(130).chr(172) => 'E'); $string = strtr($string, $chars);