4 * decode/iso8859-15.php
6 * This file contains iso-8859-15 decoding function that is needed to read
7 * iso-8859-15 encoded mails in non-iso-8859-15 locale.
9 * Original data taken from:
10 * ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-15.TXT
12 * Name: ISO/IEC 8859-15:1999 to Unicode
13 * Unicode version: 3.0
15 * Table format: Format A
17 * Authors: Markus Kuhn <mkuhn@acm.org>
18 * Ken Whistler <kenw@sybase.com>
21 * Copyright (c) 1999 Unicode, Inc. All Rights reserved.
23 * This file is provided as-is by Unicode, Inc. (The Unicode Consortium).
24 * No claims are made as to fitness for any particular purpose. No
25 * warranties of any kind are expressed or implied. The recipient
26 * agrees to determine applicability of information provided. If this
27 * file has been provided on optical media by Unicode, Inc., the sole
28 * remedy for any claim will be exchange of defective media within 90
31 * Unicode, Inc. hereby grants the right to freely use the information
32 * supplied in this file in the creation of products supporting the
33 * Unicode Standard, and to make copies of this file in any form for
34 * internal or external distribution as long as this notice remains
37 * @copyright 2003-2024 The SquirrelMail Project Team
38 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
40 * @package squirrelmail
45 * Decode iso8859-15 encoded string
46 * @param string $string Encoded string
47 * @return string $string Decoded string
49 function charset_decode_iso_8859_15 ($string) {
50 // don't do decoding when there are no 8bit symbols
51 if (! sq_is8bit($string,'iso-8859-15'))
153 $string = str_replace(array_keys($iso8859_15), array_values($iso8859_15), $string);