Microsoft KB Archive/929258

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 18:35, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Base


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

Article ID: 929258

Article Last Modified on 2/8/2007



APPLIES TO

  • Microsoft Windows SharePoint Services
  • Microsoft Office SharePoint Portal Server 2003



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:

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:


Additional query words: SPS WSS

Keywords: kbtshoot kbexpertiseinter kbexpertisebeginner kbprb KB929258