I18N_Arabic
[ class tree: I18N_Arabic ] [ index: I18N_Arabic ] [ all elements ]

Procedural File: CharsetC.php

Source Location: /Arabic/CharsetC.php



Classes:

I18N_Arabic_CharsetC
This PHP class converts a given Arabic string from one Arabic character set to another


Page Details:

----------------------------------------------------------------------

Copyright (c) 2006-2013 Khaled Al-Sham'aa.

http://www.ar-php.org

PHP Version 5

----------------------------------------------------------------------

LICENSE

This program is open source product; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program 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 Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/lgpl.txt>.

----------------------------------------------------------------------

Class Name: Arabic Charset Converter

Filename: CharsetC.php

Original Author(s): Khaled Al-Sham'aa <khaled@ar-php.org>

Purpose: Convert a given Arabic string from one Arabic character set to another, those available character sets includes the most popular three: Windows-1256, ISO 8859-6, and UTF-8

----------------------------------------------------------------------

Arabic Charset Converter

PHP class to convert a given Arabic string from one Arabic character set to another, those available character sets includes the most popular three: Windows-1256, ISO 8859-6, and UTF-8.

Example:

  1.    include('./I18N/Arabic.php');
  2.    $obj new I18N_Arabic('CharsetC');
  3.  
  4.    $obj->setInputCharset('windows-1256');
  5.    $obj->setOutputCharset('utf-8');
  6.  
  7.    $charset $obj->getOutputCharset();
  8.  
  9.    $text $obj->convert($text);




Tags:

author:  Khaled Al-Sham'aa <khaled@ar-php.org>
copyright:  2006-2013 Khaled Al-Sham'aa
link:  http://www.ar-php.org
filesource:  Source Code for this file
license:  LGPL








Documentation generated on Mon, 14 Jan 2013 17:48:38 +0100 by phpDocumentor 1.4.0