I have a problem with my project.
The project search through the database and displays the results.
The problem is that I get question marks instead of GREEK letters (i do not mean rubbish, i mean Greek).
Suppose that the problem is not about encoding.
I have to find the command that displays the title of the product into the results page.
I finally found this :
$tplv['id']=$row['id'];
$tplv['high']=$ISHIGHLIGHTED;
$tplv['bold']=$ISBOLD;
$tplv['idformat']="<A HREF=\"".$SETTINGS['siteurl']."item.php?id=".$row['id']."\">";
if($ISHIGHLIGHTED) {
$tplv['idformat'] .= "<SPAN CLASS=hg>";
}
if($ISBOLD) {
$tplv['idformat'] .= "<B>";
}
$tplv['idformat'] .= stripslashes(htmlspecialchars($row['title']));
if($ISBOLD) {
$tplv['idformat'] .= "</B>";
}
if($ISHIGHLIGHTED) {
$tplv['idformat'] .= "</SPAN>";
}
$tplv['idformat'].= "</FONT></A>";
I guess the problem is
$tplv['idformat'] .= stripslashes(htmlspecialchars($row['title']));
Is there the right place to be?
Please get a view at http://gr2.php.net/htmlentities
I attach the file that includes the previous code.
Thank you