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