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