943,148 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Marked Solved
  • Views: 527
  • PHP RSS
Jan 29th, 2010
0

PHP, MySQL and UTF-8

Expand Post »
Hello... i have problem with UTF-8 encoding...

My database and table collation are utf8_general_ci, and when I add new insert query in the database is ok, but when I'm trying to print i got -> ????

The results are:
In the database -> Дамјан Крстевски
In the browsers -> ?????? ?????????

Thanks...
Last edited by Krstevski; Jan 29th, 2010 at 9:55 pm.
Reputation Points: 17
Solved Threads: 5
Junior Poster
Krstevski is offline Offline
110 posts
since May 2009
Jan 29th, 2010
0
Re: PHP, MySQL and UTF-8
Edit: The problem is solved... the solution is:

after mysql_connect add mysql_query('SET NAMES utf8');

Thanks for your help
Reputation Points: 17
Solved Threads: 5
Junior Poster
Krstevski is offline Offline
110 posts
since May 2009
Jan 29th, 2010
0
Re: PHP, MySQL and UTF-8
your browser isn't supporting the cyrillic charactors.
There's probably a plugin that you need.
JRM
Reputation Points: 130
Solved Threads: 75
Practically a Master Poster
JRM is offline Offline
618 posts
since Oct 2006

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: mp3 upload issues
Next Thread in PHP Forum Timeline: Error with viewing image





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC