~ubuntu-branches/ubuntu/hardy/squirrelmail/hardy-updates

« back to all changes in this revision

Viewing changes to functions/decode/ns_4551_1.php

  • Committer: Bazaar Package Importer
  • Author(s): Sam Johnston
  • Date: 2004-02-04 01:42:12 UTC
  • Revision ID: james.westby@ubuntu.com-20040204014212-ek9533qvd2vo1wa1
Tags: upstream-1.5.0
Import upstream version 1.5.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 * $Id: ns_4551_1.php,v 1.1 2004/01/29 19:37:29 tokul Exp $
 
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
?>
 
 
b'\\ No newline at end of file'