fsf changes, meant to be rebased on upstream
[squirrelmail.git] / functions / decode / ns_4551_1.php
CommitLineData
d5bb4a01 1<?php
2
3/**
4 * functions/decode/ns_4551_1.php
5 *
d5bb4a01 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
91e0dccc 10 * Microsoft programs when sending Norwegian characters
d5bb4a01 11 *
c997cbe6 12 * @copyright 2004-2021 The SquirrelMail Project Team
4b4abf93 13 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
31841a9e 14 * @version $Id$
d5bb4a01 15 * @package squirrelmail
16 * @subpackage decode
17 */
18
19/**
20 * ns_4551_1 decoding function
21 *
22 * @param string $string
91e0dccc 23 * @return string
d5bb4a01 24 */
25function 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}