Beispiel #1
0
<title>Arabic Character Set Converter</title>
<meta http-equiv="Content-Type" content="text/html;charset=<?php echo $charset; ?>" />
<link rel="stylesheet" type="text/css" href="style.css" media="all" />
</head>

<body>

<div class="Paragraph" dir="rtl">
<h2 dir="ltr">Example Output:</h2>
<font face="Tahoma" size="2">
<a href="ArCharsetC.php?charset=windows-1256">Windows-1256</a> |
<a href="ArCharsetC.php?charset=iso-8859-6">ISO 8859-6</a> |
<a href="ArCharsetC.php?charset=utf-8">UTF-8</a><br /><br />

<?php
    $text = $Arabic->convert($text);

    echo $text;
?>

</font>

</div><br />
<div class="Paragraph">
<h2>Example Code:</h2>
<?php
highlight_string(<<<'END'
<?php
    $text = 'بسم الله الرحمن الرحيم';

    include('../Arabic.php');