I have all my database/tables and columns set to UTF-8_general_ci
collation set.
Conditions that I Faced :-
- When I insert hindi data manually by phpmyadmin, I can see the the hindi characters in phpmyadmin, while question marks when seen on webpage generated by PHP
- In the same table when I insert data by HTML/PHP Forms I see some unrecognizable words in english something like
cc2faa;
(something like this) and Correct Hindi on Webpage. - For the large data we have a script that reads from txt files and insert the data in the table in this , I see characters like
जाना
in phpmyadmin butHindi
On webpage.
Now the main problem is :-
Data has gone under changes online by forms and now I need this data to export to excel and give to the client but I am getting जाà¤
in excel instead of Hindi Characters.
Note :-
- All English characters are working fine and as it is everywhere.
- My CHARACTER SET is
utf8
For all tables. - I tried to change the collation to UTF-8_bin but that too doesn't helped me in anyway.
- Encoding on the browser is UTF-8, and I have already sent the headers for UTF-8 encoding.
I have seen many posts about utf8 problem but no one seem to have this weird different behavior problem.
Please Do I have any rescue from this?? Or finally have to give the PHP reports of the data??
Please help!!