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.
Subject
Views
Written By
Posted
17901
September 05, 2011 04:23PM
4313
September 07, 2011 08:01PM
5495
September 08, 2011 04:45PM
3470
September 09, 2011 06:46PM
5526
September 11, 2011 08:03AM
Re: Arabic text in mysql Varchar row
3616
September 12, 2011 11:30AM
4202
September 12, 2011 06:16PM
3019
September 12, 2011 06:17PM
3205
September 13, 2011 09:44PM
3382
September 17, 2011 05:53AM
2964
September 18, 2011 01:45PM
3056
September 19, 2011 04:10PM
3101
September 20, 2011 08:19PM
3515
September 25, 2011 12:09PM
3019
September 28, 2011 09:53PM
3272
September 29, 2011 02:44PM
4341
September 30, 2011 10:14AM
4030
September 10, 2011 03:07PM
4525
September 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.