File/decode/x-mac/x_mac_ukrainian.php

Description

decode/x_mac_ukrainian.php ****************************************************************************** Copyright (c) 2003-2005 The SquirrelMail Project Team 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 ******************************************************************************

This file contains x-mac-ukrainian decoding function that is needed to read x-mac-ukrainian encoded mails in non-x-mac-ukrainian locale.

Apple states [2] that x-mac-ukrainian differs from x-mac-cyrillic [1] only in two places. According to [3] these symbols are: 0x92 - U+1168 - CYRILLIC CAPITAL LETTER GHE WITH UPTURN 0xD6 - U+1169 - CYRILLIC SMALL LETTER GHE WITH UPTURN

References:

  1. ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/MAC/CYRILLIC.TXT
  2. http://developer.apple.com/documentation/macos8/TextIntlSvcs/TextEncodingConversionManager/TEC1.5/TEC.b0.html
  3. http://shlimazl.nm.ru/rus/cptable.htm (page in Russian)

  • version: $Id: x_mac_ukrainian.php 1288 2008-04-20 12:33:24Z tokul $
Functions
charset_decode_x_mac_ukrainian (line 45)

Decode a x-mac-ukrainian string

  • return: Decoded string
string charset_decode_x_mac_ukrainian (string $string)
  • string $string: Encoded string

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