PHP and Excel sheet
<p>this is code to retrive data and insert it in to excel sheet</p>

<pre><code>header( "Content-Type: application/vnd.ms-excel" );
header( "Content-Type: text/html; charset=ISO-8859-1" );
header('Content-Type:text/html; charset=UTF-8');
header( "Content-disposition: attachment; filename=spreadsheet.xls" );

$rs = mysql_query("select * from organizations");
while ($row = mysql_fetch_object($rs)) {

    echo $row-&gt;name1 . "\t" . $row-&gt;name2 . "\t" . $row-&gt;name3 ."\t" . $row-&gt;email . "\n";
}
</code></pre>

<p>($row->name1) is in arabic format</p>

<p>the problem is in excel sheet Arabic language is unreadable</p>

<p>any solution please</p>
