Re: Arabic text in mysql Varchar row
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.