While retrieving Greek/ Arabic/ Russian language or some other non english character data from database there is possibility that the data may appear as question marks (??????) instead of the original data, Usually you will be having data in its original language neatly stored in database, but for some strange reasons php is displaying it as ?????? when queried.
This problem actually happens because you have not explicitly mentioned the character set inside your php code. Here are two things you must do to solve your problem.
<head> <meta http-equiv="Content-Type" content="text/html" charset="utf-8" /> </head>
$new_database_content=mysql_query("select * from (….) where (….) ");
Tags: Character encoding problem
- Permalink
- The Analyst
- 30 Oct 2008 6:46 PM
- Comments (0)