I18N_Arabic

# Procedural File: CharsetD.php

Source Location: /Arabic/CharsetD.php

## Classes:

I18N_Arabic_CharsetD
  This PHP class detect Arabic string character set

## Page Details:

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

Copyright (c) 2006-2016 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: Detect Arabic String Character Set

Filename: CharsetD.php

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

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('./I18N/Arabic.php');
2. $obj = new I18N_Arabic('CharsetD');
4. $charset = $obj->getCharset($text);

#### Tags:

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

Documentation generated on Fri, 01 Jan 2016 10:25:53 +0200 by phpDocumentor 1.4.0