Re: Arabic characters displayed as garbage !!
| From: | martin73 at maxnet dot co dot nz | Date: | Sun, 03 Oct 2004 22:53:14 +0000 |
| Subject: | Re: Arabic characters displayed as garbage !! | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-36562@lists.php.net to get a copy of this message | ||
Did you set a character encoding on your page to Arabic? (eg. ISO-8859-6)
> Hi,
>
> I'm working on a website that needs to save and display Arabic characters.
> I'm using MySQL database and no matter how I insert the data either using
> phpMyAdmin or inserting it using a script of my own, when I try to show
> (display) the data I previously saved (which contains Arabic characters),
> the output is rubbish and has no relation with the words I saved
>
> the script I'm using for displaying the data is as simple as the following
> one
>
> //===========================================================
> <?php
> include("db.php");
> $result = mysql_query("select * from mem_applications");
> if ($result)
> {
> while ($row = mysql_fetch_array($result))
> {
> echo $row['first_name'];
> echo "<br>";
> echo $row['mid_name'];
> echo "<br>";
> echo $row['last_name'];
> echo "<br>";
> }
> }
> ?>
> //===========================================================
>
> Thanks in advance
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>