File/decode/eastasia/cp949.php

Description

decode/cp949.php

This file contains cp949 decoding function that is needed to read cp949 encoded mails in non-cp949 locale. I think microsoft uses cp949 for emails marked with ks_c_5601_1987 charset. Fix me if I wrong.

cp949 array is not aligned correctly in order to preserve space.

Special thanks to Korean flower shop spammer that have sent some Korean texts to person, that does not understand a word in that language.

Original data taken from: ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP949.TXT

Name: cp949 to Unicode table Unicode version: 2.0 Table version: 2.01 Table format: Format A Date: 1/7/2000 Contact: cpxlate@microsoft.com

Possible charset names:

  • x-windows-949 (Mozilla)
  • ks_c_5601_1987 (OE ?)
  • uhc
  • johab ?

****************************************************************************** Copyright (c) 2004-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_cp949 (line 63)

Decode cp949 encoded string

  • return: decoded string
string charset_decode_cp949 (string $string, [boolean $save_html = false])
  • string $string: cp949 string
  • boolean $save_html: don't html encode special characters if true

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