Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Search engine problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Search engine problem

 Post Reply Post Reply
Author
patlis View Drop Down
Newbie
Newbie


Joined: 11 September 2007
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote patlis Quote  Post ReplyReply Direct Link To This Post Topic: Search engine problem
    Posted: 11 September 2007 at 4:27pm
Hi to all,
First of all i am sorry for my english, so
I have a forum with greek language, If i search a english word or a number, the search engine work good. If i try to search a greek word then the search engine they dont give results.
Can you help my?
Comments
I add to all pages the <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
EVERYTHIG else work good except searching
In MSSQL database i changed the text fields to nvarhar(max)
Thanks
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 11 September 2007 at 4:29pm
Sounds like you need to change the page encoding that the browser is working in.

If you are using 9.04 or above, edit the includes/setup_options_inc.asp file and set the correct page encoding for both web pages and RSS Feeds.
Back to Top
patlis View Drop Down
Newbie
Newbie


Joined: 11 September 2007
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote patlis Quote  Post ReplyReply Direct Link To This Post Posted: 11 September 2007 at 4:33pm
Thaks for your quick answer!
I allready set the encoding to utf-8
my page is http://www.gardensandplants.com/forum_gr


Edited by patlis - 11 September 2007 at 4:36pm
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 11 September 2007 at 4:37pm
Yes but you have also siad that you have set CODEPAGE="65001" which is different to utf-8

So the front end is working in one encoding, while behind the scene the server is using a different encoding.

This can lead to issues as both will store and use non-English characters in different ways, thus coursing issues with things like searching.

You have also changed data types to nvarchar, again this alters the way text is stored.

It seems that you have modified a number of areas, which in turn prevents searching from working.


Edited by -boRg- - 11 September 2007 at 4:39pm
Back to Top
patlis View Drop Down
Newbie
Newbie


Joined: 11 September 2007
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote patlis Quote  Post ReplyReply Direct Link To This Post Posted: 11 September 2007 at 4:49pm
Thanks again,
Sorry but i can't anderstand you.
what must to do?
I tryied to remove the first line ...CODEPAGE="65001" but nuthing
Do you have an idea?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 11 September 2007 at 5:02pm
The data will already be stored in the wrong format.

You need to put the forum back to how it was with correct database datatypes, correct encoding etc. then when you post new posts they will be searchable.
Back to Top
patlis View Drop Down
Newbie
Newbie


Joined: 11 September 2007
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote patlis Quote  Post ReplyReply Direct Link To This Post Posted: 11 September 2007 at 5:04pm
Thanks!
Back to Top
patlis View Drop Down
Newbie
Newbie


Joined: 11 September 2007
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote patlis Quote  Post ReplyReply Direct Link To This Post Posted: 12 September 2007 at 11:30am

Finally it was very easy to solve the problem.

In search_process.asp I add an "N" after "LIKE" and before "'%"
Now it shows " LIKE N'%" and before was " LIKE '%"
Best regards
 
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.