File/decode/eastasia/gb2312.php

Description

functions/decode/gb2312.php

This file contains gb2312-euk decoding function that is needed to read gb2313 encoded mails in non-gb2312 locale.

Original data taken from: ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/GB/GB2312.TXT

Name: GB2312-80 to Unicode table (complete, hex format) Unicode version: 3.0 Table version: 1.0 Table format: Format A Date: 1999 October 8

Copyright (c) 1991-1999 Unicode, Inc. All Rights reserved.

This file is provided as-is by Unicode, Inc. (The Unicode Consortium). No claims are made as to fitness for any particular purpose. No warranties of any kind are expressed or implied. The recipient agrees to determine applicability of information provided. If this file has been provided on optical media by Unicode, Inc., the sole remedy for any claim will be exchange of defective media within 90 days of receipt.

Unicode, Inc. hereby grants the right to freely use the information supplied in this file in the creation of products supporting the Unicode Standard, and to make copies of this file in any form for internal or external distribution as long as this notice remains attached.

****************************************************************************** Copyright (c) 2003-2005 The SquirrelMail Project Team Copyright (c) 2006-2007 The NaSMail Project This file is part of NaSMail Extra Decoding library.

This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ******************************************************************************

Functions
charset_decode_gb2312 (line 64)

Decode gb2312-euk encoded string

  • return: Decoded string
string charset_decode_gb2312 (string $string, [boolean $save_html = false])
  • string $string: Encoded string
  • boolean $save_html: don't html encode special characters if true

Documentation generated on Sun, 22 Nov 2009 17:36:35 +0200 by phpDocumentor 1.4.3