Source for file ns_4551_1.php

Documentation is available at ns_4551_1.php

  1. <?php
  2.  
  3. /**
  4.  * functions/decode/ns_4551_1.php
  5.  *
  6.  * This file contains ns_4551-1 decoding function that is needed to read
  7.  * ns_4551-1 encoded mails in non-ns_4551-1 locale.
  8.  *
  9.  * This is the same as ISO-646-NO and is used by some
  10.  * Microsoft programs when sending Norwegian characters
  11.  *
  12.  * @copyright &copy; 2004-2006 The SquirrelMail Project Team
  13.  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  14.  * @version $Id: ns_4551_1.php,v 1.2.2.5 2006/02/03 22:27:47 jervfors Exp $
  15.  * @package squirrelmail
  16.  * @subpackage decode
  17.  */
  18.  
  19. /**
  20.  * ns_4551_1 decoding function
  21.  *
  22.  * @param string $string 
  23.  * @return string 
  24.  */
  25. function charset_decode_ns_4551_1 ($string{
  26.     /*
  27.      * These characters are:
  28.      * Latin capital letter AE
  29.      * Latin capital letter O with stroke
  30.      * Latin capital letter A with ring above
  31.      * and the same as small letters
  32.      */
  33.     return strtr ($string"[\\]{|}""ÆØÅæøå");
  34. }
  35. ?>

Documentation generated on Sat, 07 Oct 2006 16:32:41 +0300 by phpDocumentor 1.3.0RC6