Url Encodings - Sun Microsystems Netscape Enterprise Server Administrator's Manual

Table of Contents

Advertisement

Customizing the Search Interface
You can set up a search to use a variable conditionally so that if there is no
value associated with the variable, nothing is displayed. The syntax is as
follows:
For example, you could request that the document's title be output if it exists. If
there is no title for this document, not even the label "Title:" is to be displayed.
To do this, you would use code like this:

URL Encodings

When you construct HTML instructions, whether in decorated URLs or within a
pattern file, you need to follow the rules for URL encoding. Any character that
might be misunderstood as part of an URL should be encoded with a code in
the format of %nn, where nn is a hexadecimal code. Blanks are converted to
the + symbol (plus sign) in queries or to %20 in output. The following table
shows the most commonly used URL codes.
Table 16.6 Common URL encodings
Character
;
/
?
:
@
=
&
438 Netscape Enterprise Server Administrator's Guide
variableName[conditionalized output]
$$Title[<PTitle: <B$$Title</B]
Description
Space
Semicolon
Slash
Question mark
Colon
At sign
Equal sign
Ampersand
Code
%20
%3B
%2F
%3F
%3A
%40
%3D
%26

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Netscape Enterprise Server and is the answer not in the manual?

Questions and answers

Table of Contents