adding address book block
[squirrelmail.git] / functions / decode / ns_4551_1.php
CommitLineData
d5bb4a01 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 *
31841a9e 15 * @version $Id$
d5bb4a01 16 * @package squirrelmail
17 * @subpackage decode
18 */
19
20/**
21 * ns_4551_1 decoding function
22 *
23 * @param string $string
24 * @return string
25 */
26function 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?>