Microsoft KB Archive/929258

= 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:

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 &quot;veröffentlichten&quot; is missing the &quot;ö&quot; 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

Additional query words: SPS WSS

Keywords: kbtshoot kbexpertiseinter kbexpertisebeginner kbprb KB929258

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.