hello! this is a great community. I would like to post my problem.
I am using PHP and MySql. I have created a database using unicode utf-8 ci and a table in it. I use PHP code ( I am using notepad and save as UTF-8) in order to access the contents of my database and diplay them on my page. The problem is that the greek words do not appear correcty. (They appear as question marks (?)). I have tried some solutions that I have found on the web but none of them worked for me. Can u suggest me any solutions? thanks a lot.
php+mysql problem with unicode utf-8
Moderator: General Moderators
-
hellraiser3gr
- Forum Newbie
- Posts: 3
- Joined: Tue Jun 09, 2009 9:59 am
Re: php+mysql problem with unicode utf-8
What it your HTML page encoding?
This may be useful:
http://en.wikipedia.org/wiki/Character_ ... gs_in_HTML
This may be useful:
http://en.wikipedia.org/wiki/Character_ ... gs_in_HTML
-
hellraiser3gr
- Forum Newbie
- Posts: 3
- Joined: Tue Jun 09, 2009 9:59 am
Re: php+mysql problem with unicode utf-8
thanks for the answer! I found a solution. I have just added this line to my code
mysql_query(”set names utf8″);
mysql_query(”set names utf8″);