469,922 Members | 2,106 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,922 developers. It's quick & easy.

Using MS Index Server to search french Accented characters

Hi everyone,
I'm new to this forum and I hope I'm in the right one. I have a question regarding MS Index server to search for french accent characters.

I have a search engine for our website that uses MS Index Server
and it works great but it doesn't find any results for searches that
contain french accented characters.

If I'm searching for "lment"...it doesn't find anything because the
page uses html codes for accents and this word would be written like
"(& e a c u t e ;)l(& e a c u t e ;)ment" (without the brackets and spaces) in my source code.
My page uses charset utf-8 but the Index server uses 2 separate files
(.htx and .idq files) and there doesn't seem to be any settings in there
for this problem.

Is there any way around this?

Thanks
Aug 22 '07 #1
1 1103
jhardman
3,406 Expert 2GB
yes, unfortunately the best way around this is to take the search phrases and immediately put them through replace statements before you search, like this:
Expand|Select|Wrap|Line Numbers
  1. dim strToFind
  2. strToFind = request.form("search")
  3. strToFind = replace(strToFind, "é", "é")
  4. 'etc
  5. 'then execute the search function on the altered strToFind
I know it's not very straight-forward, but you could easily put all the replaces in a single function so you could use it very easily. Let me know if this helps.

Jared
Aug 23 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

13 posts views Thread by jd | last post: by
1 post views Thread by jgershonw1 | last post: by
reply views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.