We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,628 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Help regarding question mark in search suggestions

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

3
Contributors
6
Replies
1 Day
Discussion Span
2 Years Ago
Last Updated
7
Views
amit.hak50
Junior Poster in Training
65 posts since Dec 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Hi,

Try setting the page character encoding to UTF-8.

R.

blocblue
Practically a Posting Shark
837 posts since Jan 2008
Reputation Points: 272
Solved Threads: 161
Skill Endorsements: 12

Hi,

Try setting the page character encoding to UTF-8.

R.

Thanks for reply , Where I can set this

amit.hak50
Junior Poster in Training
65 posts since Dec 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
diafol
Keep Smiling
Moderator
10,625 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,506
Skill Endorsements: 57
<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 ..

amit.hak50
Junior Poster in Training
65 posts since Dec 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 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...

blocblue
Practically a Posting Shark
837 posts since Jan 2008
Reputation Points: 272
Solved Threads: 161
Skill Endorsements: 12

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

diafol
Keep Smiling
Moderator
10,625 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,506
Skill Endorsements: 57

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0954 seconds using 2.71MB