|
|
|
|
|
See also: CharsetD
Related Class Documentation
<?php
$text = 'بسم الله الرحمن الرحيم';
require('I18N/Arabic.php');
$Arabic = new I18N_Arabic('CharsetC');
$Arabic->setInputCharset('utf-8');
$Arabic->setOutputCharset('utf-8');
$charset = $Arabic->getOutputCharset();
$text1 = $Arabic->convert($text);
echo "<p>$text1 ($charset)</p>";
$Arabic->setOutputCharset('windows-1256');
$charset = $Arabic->getOutputCharset();
$text2 = $Arabic->convert($text);
echo "<p>$text2 ($charset)</p>";
$Arabic->setOutputCharset('iso-8859-6');
$charset = $Arabic->getOutputCharset();
$text3 = $Arabic->convert($text);
echo "<p>$text3 ($charset)</p>";
?>
|
| | |