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

Procedural File: I18N_Arabic_CharsetC.php

Source Location: /I18N_Arabic/I18N_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) 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: I18N_Arabic_CharsetC.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('I18N_Arabic.php');
  2.    $Arabic new I18N_Arabic('CharsetC');
  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 Sat, 07 Nov 2009 19:52:57 +0200 by phpDocumentor 1.4.0