From: tokul Date: Sun, 27 Jul 2003 11:14:01 +0000 (+0000) Subject: Simplified case statement. Suggestion from Thijs. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=97b9c02f69004e8f2fa13a13cddb6e5804c9623b;p=squirrelmail.git Simplified case statement. Suggestion from Thijs. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5449 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/i18n.php b/functions/i18n.php index 76d22910..d2415daf 100644 --- a/functions/i18n.php +++ b/functions/i18n.php @@ -721,20 +721,16 @@ function cleanup_nbsp($string,$charset) { // where is non-braking space symbol switch($output_charset): case "iso-8859-x": + case "cp125x": + case "iso-2022-jp": $nbsp="\xA0"; break; - case "cp125x": - $nbsp="\xA0"; - break; case "koi8-x": $nbsp="\x9A"; break; case "utf-8": $nbsp="\xC2\xA0"; break; - case "iso-2022-jp": - $nbsp="\xA0"; - break; default: // don't change string if charset is unmatched return $string;