0

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

Edited by amit.hak50: n/a

3
Contributors
6
Replies
7
Views
6 Years
Discussion Span
Last Post by diafol
0

Hi,

Try setting the page character encoding to UTF-8.

R.

Thanks for reply , Where I can set this

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

0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.