954,174 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

PHP, MySQL and UTF-8

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...

Krstevski
Junior Poster
110 posts since May 2009
Reputation Points: 17
Solved Threads: 5
 

Edit: The problem is solved... the solution is:

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

Thanks for your help :)

Krstevski
Junior Poster
110 posts since May 2009
Reputation Points: 17
Solved Threads: 5
 

your browser isn't supporting the cyrillic charactors.
There's probably a plugin that you need.

JRM
Practically a Master Poster
621 posts since Nov 2006
Reputation Points: 130
Solved Threads: 75
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You