Source for file iso_8859_1.php
Documentation is available at iso_8859_1.php
* This file contains iso-8859-1 decoding function that is needed to read
* iso-8859-1 encoded mails in non-iso-8859-1 locale.
* @copyright © 2003-2006 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: iso_8859_1.php,v 1.3.2.6 2006/02/03 22:27:47 jervfors Exp $
* Decode iso8859-1 string
* @param string $string Encoded string
* @return string $string Decoded string
// don't do decoding when there are no 8bit symbols
$string =
preg_replace("/([\201-\237])/e","'&#' . ord('\\1') . ';'",$string);
/* I don't want to use 0xA0 (\240) in any ranges. RH73 may dislike it */
$string =
preg_replace("/([\241-\377])/e","'&#' . ord('\\1') . ';'",$string);
Documentation generated on Sat, 07 Oct 2006 16:31:51 +0300 by phpDocumentor 1.3.0RC6