<?php require('I18N/Arabic.php'); $Arabic = new I18N_Arabic('CharsetD'); $text1 = 'خالد الشمعة'; $charset = $Arabic->getCharset($text1); echo "<p>$text1 ($charset)</p>"; $text2 = ' '; $charset = $Arabic->getCharset($text2); echo "<p>$text2 ($charset)</p>"; ?>
خالد الشمعة (utf-8)
(windows-1256)