Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - search engine/strange characters.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

search engine/strange characters.

 Post Reply Post Reply
Author
Badaboem View Drop Down
Senior Member
Senior Member


Joined: 12 April 2002
Location: Netherlands
Status: Offline
Points: 600
Post Options Post Options   Thanks (0) Thanks(0)   Quote Badaboem Quote  Post ReplyReply Direct Link To This Post Topic: search engine/strange characters.
    Posted: 26 July 2004 at 10:35pm
I'm done building a search engine for a link/download directory, but came across an issue. When submitting a download, some text fields are entered in the mssql database with strange characters and they aren't picked up by the search engine.

For example, i entered a field with the test text:
Expression Download Blot
and it's displayed in the database as
Expression Download Blot

I'm not sure why text is entered into the database with these characters. Is there a way to insert text fields into the database without? (the database table type = nvchar)

Here's the insert SQL used.

strSQL = "INSERT INTO " & strDbTable & "Downloads(Download_Name, Download_Link, D_Url, Download_Preview, Download_Preview_Movie, Download_SubCat, Submitter, DComments, D_Added, D_Size, D_Short, Download_Version, D_DownloadLink, D_FreeCommercial, D_ReportBad) " _
        & "Values('" & strDName & "','" & strDLink & "','" & strDUrl & "','" & strDPreview & "','" & strDPreviewMovie & "'," & scid & "," & lngLoggedInUserID & ",'" & strDLong & "'," & strDate & ",'" & strDSize & "','" & strDShort & "','" & strDVersion & "','" & strDownloadORLink & "','" & strFreeCommercial & "'," & blnReportBad & ")"

    adoCon.Execute(strSQL)


Response.write on all strings don't display these character issues.

Either the search engine has to be fixed somehow or in this case the way the database handles text, but I don't know what to look for or change. Is it the table type I use? Or perhaps the insert statement?

Thanks in advance for your help.


Edited by Badaboem
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 27 July 2004 at 12:20am
WWF replaces some characters with HTML entities. They will appear correctly when display but unless you run your search query through the correct translator it will not return the correct results. Take a look at the search page code for the forum to see where the translation takes place.
Back to Top
Badaboem View Drop Down
Senior Member
Senior Member


Joined: 12 April 2002
Location: Netherlands
Status: Offline
Points: 600
Post Options Post Options   Thanks (0) Thanks(0)   Quote Badaboem Quote  Post ReplyReply Direct Link To This Post Posted: 27 July 2004 at 5:15am
Thanks Ljamal!

Does anybody know what filter (name) is used to covert certain strings to proper html entity formats in wwf?
Back to Top
Badaboem View Drop Down
Senior Member
Senior Member


Joined: 12 April 2002
Location: Netherlands
Status: Offline
Points: 600
Post Options Post Options   Thanks (0) Thanks(0)   Quote Badaboem Quote  Post ReplyReply Direct Link To This Post Posted: 27 July 2004 at 11:44am
Never mind, found out what the issue was.
Seems there's a small bug in the forum search and because i duplicated some search script i encountered the same issue.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.