ns_4551_1.php 879 B

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