Share via


Getting Browsers to Recognize Different Languages

Note

Indexing Service is no longer supported as of Windows XP and is unavailable for use as of Windows 8. Instead, use Windows Search for client side search and Microsoft Search Server Express for server side search.

 

If you set CiLocale in your .idq files, you can override the locale sent from a browser. The Web browser sends its locale through the HTTP_ACCEPT_LANGUAGE variable. To find a list of recognized locale codes, see Valid Locale Identifiers.

Instead of overriding the locale sent by a browser, you may want to use the locale sent by a browser that is querying text in variety of languages. For example, given a single HTML page, one query could be for German text (CiLocale=De) and another could be for Spanish text (CiLocale=Es). If CiLocale is not found in the .idq file the locale sent by the Web browser is used. If no locale is sent by the browser, Indexing Service uses the locale of the web server.

The following table shows examples of three types of settings. Each setting specifies a different source from which the value of CiLocale is taken:

CiLocale Setting in .Idq Value Source
CiLocale=En-US Web site (set in the .idq file)
CiLocale=%CiLocale% HTML page (set in the query form)
CiLocale= Web browser (from HTTP_ACCEPT_LANGUAGE)