Microsoft Knowledge Base Email Alertz

You receive an invalid search result when you use a custom site context search box to search a document that has special characters in SharePoint Portal Server

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 929258 - Last Review: February 8, 2007 - Revision: 2.2

You receive an invalid search result when you use a custom site context search box to search a document that has special characters in SharePoint Portal Server

SYMPTOMS

You replace the default site context search box with a custom site context search box that uses Microsoft SharePoint Portal Server search results. When you use this custom site context search box to search a document that has special characters, you receive an invalid search result.

For example, you have a document that has German characters and that has been indexed. You type the following address in the URL dialog box and then press ENTER:
http://MyServer:9091/Search.aspx?k=veröffentlichten
When you do this, you receive an invalid search result. Additionally, when you view the custom site context search box, you find that the word "veröffentlichten" is missing the "ö" character.

CAUSE

This issue occurs when you use the JavaScript escape function to encode the URL when you create the custom site context search box. The escape function cannot encode special characters correctly.

RESOLUTION

To resolve this issue, use the escapeProperty function when you create the custom site context search box. This function is defined in the Ows.js file. This function can encode the URL correctly.

MORE INFORMATION

For more information about how to create a site context search box that uses SharePoint Portal Server search results, visit the following Microsoft Web site:
http://msdn2.microsoft.com/en-us/library/ms916808.aspx (http://msdn2.microsoft.com/en-us/library/ms916808.aspx)

APPLIES TO
  • Microsoft Windows SharePoint Services 2.0
  • Microsoft Office SharePoint Portal Server 2003
Keywords: 
kbtshoot kbprb kbexpertiseinter kbexpertisebeginner KB929258
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate