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

Procedural File: ArCharsetD.class.php

Source Location: /sub/ArCharsetD.class.php



Classes:

ArCharsetD
This PHP class detect Arabic string character set


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: Detect Arabic String Character Set

Filename: ArCharsetD.class.php

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

Purpose: This class will return Arabic character set that used for a given Arabic string passing into this class, those available character sets that can be detected by this class includes the most popular three: Windows-1256, ISO 8859-6, and UTF-8.

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

Detect Arabic String Character Set

The last step of the Information Retrieval process is to display the found documents to the user. However, some difficulties might occur at that point. English texts are usually written in the ASCII standard. Unlike the English language, many languages have different character sets, and do not have one standard. This plurality of standards causes problems, especially in a web environment.

This PHP class will return Arabic character set that used for a given Arabic string passing into this class, those available character sets that can be detected by this class includes the most popular three: Windows-1256, ISO 8859-6, and UTF-8.

Example:

  1.    include('./Arabic.php');
  2.    $Arabic new Arabic('ArCharsetD');
  3.  
  4.    $charset $Arabic->ArCharsetD->getCharset($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