I have this pdf search engine script http://pdfsearchmachine.com and when you type "g" it give some suggestions ,my problem is that why I am getting some ? marks in search suggestions beloa is the code

<?
$search = $_GET["search"];
$replace = " "; $with = "+";
$search = str_replace($replace, $with, $search);

if ($rs = $rss->get("http://api.search.yahoo.com/WebSearchService/rss/webSearch.xml?appid=yahoosearchwebrss&query=originurlextension%3Apdf+$search&adult_ok=1&start=$start")) 
{

}

// Go through the list powered by the search engine listed and get the data from each <item>
$colorCount="0";

    foreach($rs['items'] as $item) { 

	// Get the title of result

	   $title = $item['title'];

	// Get the description of the result

	   $description = $item['description'];

	// Get the link eg amazon.com

	   $urllink = $item['guid'];

if($colorCount%2==0)
{
$color = ROW1_COLOR;
}
else
{
$color = ROW2_COLOR;
}

include "resulttemplate.php";
$colorCount++;
 echo "\n"; 

} 

	



?>

can anybody help me ..

Recommended Answers

All 6 Replies

Hi,

Try setting the page character encoding to UTF-8.

R.

Hi,

Try setting the page character encoding to UTF-8.

R.

Thanks for reply , Where I can set this

Member Avatar for diafol
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

I also have problem with this like suppose you type "html 5" in text box of http://pdfsearchmachine.com I got this type of weeird characters in the explanation "HTML5는 ì•„ì§ ì´ˆì•ˆ 단계ì´ë‹¤. ๠하지만 마무리 단계ì´ê¸° ë•Œë¬¸ì— ëŒ€ë¶€ë¶„ì˜ ë‚´ìš©ì€ í™•ì •ì´. ëœ ìƒíƒœë¼ê³ ë´ë„ 무방하다. ... HTML5 마í¬ì—…. HTM" how I can correct that ..

I would have thought that was a parsing issue. Is the original PDF readable using Adboe Reader or something? How are you reading the PDFs with PHP? I assume its using a PDF library, rather than just opening the file using fopen or file_get_contents...

Member Avatar for diafol

I don't get the same problem. Tried html 5 and html5. All results looked fine.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.