Evertjan. wrote:
You will have to translate it to:
page.asp?myurl=newpage.asp^myanchor
a otherwise the browser will think the
#myanchor
part is ment for
page.asp
and not of
newpage.asp:
If there is an unencoded "#" in the URL that is not part of a character
entity, it IS intended for the client. The browser does not merely *think*
so. It is obeying RFC 1808...
2.4.1. Parsing the Fragment Identifier
If the parse string contains a crosshatch "#" character, then the
substring after the first (left-most) crosshatch "#" and up to the
end of the parse string is the <fragmentidentifier. If the
crosshatch is the last character, or no crosshatch is present, then
the fragment identifier is empty. The matched substring, including
the crosshatch character, is removed from the parse string before
continuing.
Note that the fragment identifier is not considered part of the URL.
However, since it is often attached to the URL, parsers must be able
to recognize and set aside fragment identifiers as part of the
process.
....not to mention RFC 1738:
2.2. URL Character Encoding Issues
All unsafe characters must always be encoded within a URL. For
example, the character "#" must be encoded within URLs even in
systems that do not normally deal with fragment or anchor
identifiers, so that if the URL is copied into another system that
does use them, it will not be necessary to change the URL encoding.
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.