Skip navigation links

MySQL Forums :: Full-Text Search :: Arabic text in mysql Varchar row


Advanced Search

Re: Arabic text in mysql Varchar row
Posted by: Rick James ()
Date: September 12, 2011 11:30AM

I don't think you should ever have to use utf8_encode() or utf8_decode(). I suspect they are the problem.

TRUNCATE TABLE and start over.
Or DROP TABLE, CREATE TABLE again.
(Or you could create a new table, and a new web page to experiment with.)

The diamonds are, I believe, because of _encoding_ corruption. I don't think you can get the desired text because the bad encoding led to '?' (0x3F) instead of useful information.

> After db insert, php echo shows: ...
Let's see the SELECT HEX(). Until that shows D8/D9 instead of C3, what PHP shows is irrelevant.

Options: ReplyQuote


Subject Views Written By Posted
Arabic text in mysql Varchar row 6001 Mark Webley 09/05/2011 04:23PM
Re: Arabic text in mysql Varchar row 1649 Rick James 09/07/2011 08:01PM
Re: Arabic text in mysql Varchar row 2433 Mark Webley 09/08/2011 04:45PM
Re: Arabic text in mysql Varchar row 1522 Rick James 09/09/2011 06:46PM
Re: Arabic text in mysql Varchar row 2338 Mark Webley 09/11/2011 08:03AM
Re: Arabic text in mysql Varchar row 1374 Rick James 09/12/2011 11:30AM
Re: Arabic text in mysql Varchar row 1900 Mark Webley 09/12/2011 06:16PM
Re: Arabic text in mysql Varchar row 1266 Mark Webley 09/12/2011 06:17PM
Re: Arabic text in mysql Varchar row 1268 Rick James 09/13/2011 09:44PM
Re: Arabic text in mysql Varchar row 1642 Mark Webley 09/17/2011 05:53AM
Re: Arabic text in mysql Varchar row 1334 Rick James 09/18/2011 01:45PM
Re: Arabic text in mysql Varchar row 1370 Mark Webley 09/19/2011 04:10PM
Re: Arabic text in mysql Varchar row 1324 Rick James 09/20/2011 08:19PM
Re: Arabic text in mysql Varchar row 1546 Mark Webley 09/25/2011 12:09PM
Re: Arabic text in mysql Varchar row 1360 Rick James 09/28/2011 09:53PM
Re: Arabic text in mysql Varchar row 1312 Mark Webley 09/29/2011 02:44PM
Re: Arabic text in mysql Varchar row 1862 Rick James 09/30/2011 10:14AM
Re: Arabic text in mysql Varchar row 1975 Rick James 09/10/2011 03:07PM
Re: Arabic text in mysql Varchar row 1884 Mark Webley 09/11/2011 08:01AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.