saidbakr wrote:Hello,
From your reply, I may understand that, I have to change some of MySQL server settings, but what may I do if this option is impossible, shared host for example,?
No, not at all. You may need to drop and recreate all your tables though, if they were created with the wrong encoding.
Migrating the data could be tricky - you might need to edit the dump file.
However,In inserting data, I use a PHP web application's page encoded with iso-8859-6 charset.
Have you notified MySQL that you're using this charset? Are your tables in the charset?
Personally I'd go for utf8 as it's likely to work better and has a wider range of characters.
But you MUST have your tables in the right encoding AND the connection encoding set correctly ("set names utf8" normally does it).
Do you think that using windows-1256 charset will be a solution?
Only if you're sure that MySQL and the browser fully support that charset. utf8 sounds better.
Remember that "Like" can only be expected to work if the database is really in the encoding that it thinks it is.
Otherwise, your database is really full of junk which just happens to come out right.
Mark