Re: Any hints lantin1 utf-8

From: Date: Sat, 25 Nov 2006 02:38:49 +0000
Subject: Re: Any hints lantin1 utf-8
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-42748@lists.php.net to get a copy of this message
Thanks Neil, But what would be the best way to convert my Arabic Texts which were stored through a php script into a latin1 table back to UTF-8. I wonder WHY is it displayed correctly when retrieved through the php scripts (!!??) M. From: Niel Archer <niel@catweasel.org> Reply To: php-db@lists.php.net To: php-db@lists.php.net Subject: Re: [PHP-DB] Any hints lantin1 utf-8 Sent: Friday, November 24, 2006 5:56 PM Hi If you're storing non-latin character in a latin-1 table you are bound to get this problem. phpMyAdmin is simply showing you what you put there as far as it is concerned. You should switch to using an alternative encoding for the character set. UTF-8 would likely be best for you. Back up all the data before making the change, or it WILL be corrupted. If you primarily use non-latin character sets, I'd recommend making UTF-8 the default database character set Niel From: Abu Mosaab <abumosaab1@hotmail.com> To: php-db@lists.php.net Subject: Any hints lantin1 utf-8 Sent: Friday, November 24, 2006 12:48 PM Would you please give any suggestions or hints about storing data into MySQL. I have a site where I use MySQL database to store usually Arabic texts. I use a custom contorl panel to store/retrieve the Arabic texts from the database. Everything up to now is OK. But When I try to open the database directly using (say phpmyadmin) the Arabic texts does not appear correctly. Its appears something like 'ãä ÇáÐí äÇÕÑ ÅÓÑÇÆíáÇð ¿'. The default charset of the database/table is latin1. I know it's a matter of encoding used. But how can I be able to view the data directly correctly ??? _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

« previous php.db (#42748) next »