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

Procedural File: ArCharsetC.class.php

Source Location: /sub/ArCharsetC.class.php



Classes:

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


Page Details:

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

Copyright (C) 2009 by Khaled Al-Shamaa.

http://www.ar-php.org

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

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: ArCharsetC.class.php

Original Author(s): Khaled Al-Sham'aa <khaled.alshamaa@gmail.com>

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('./Arabic.php');
  2.    $Arabic new Arabic('ArCharsetC');
  3.  
  4.    $Arabic->setInputCharset('windows-1256');
  5.    $Arabic->setOutputCharset('utf-8');
  6.  
  7.    $charset $Arabic->getOutputCharset();
  8.  
  9.    $text $Arabic->convert($text);




Tags:

author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
copyright:  2009 Khaled Al-Shamaa
link:  http://www.ar-php.org
license:  LGPL








Documentation generated on Tue, 18 Aug 2009 00:12:48 +0300 by phpDocumentor 1.4.0