ns_4551_1.php 867 B

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