FIX: Fragment Identifiers Ignored for Links on UTF-8 pagesID: Q182501
|
Hyperlinks that use fragment identifiers ("#fragment") on the URL to identify a specific location in the target resource will fail in Internet Explorer 4.0, 4.01 (IE 4.0x) for UTF-8 pages, sometimes with the following error message:
Internet explorer cannot open the Internet site <garbage>.
Make sure the address is correct and try again."
IE 4.0x parses URLs with embedded "#" symbols incorrectly for the UTF-8 code page.
The only available workaround at this time is to use an alternative
character set (charset).
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was corrected in Microsoft Internet Explorer 5.
The following HTML demonstrates the problem:
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<TITLE>Repro of UTF-8 Fragment Failure Bug</TITLE>
</HEAD>
<BODY>
<A HREF="#subloc1">Jump down</A>
<!-- ... bunch of BR's ... -->
<A NAME=subloc1>Many lines down</A>
</BODY>
</HTML>
Activating the hyperlink in this document generates the symptoms described
in this article--nothing happens or an error message box is shown. With the
correct behavior, Internet Explorer should scroll the document down to the
sub-location within the document.
HTML 4.0 RFC 1866, subsection 7.4:
http://www.w3.org/TR/REC-html40/struct/links.html#h-12.1.1
Additional query words: hash bookmark #
Keywords : kberrmsg kbIE500fix
Version :
Platform :
Issue type : kbbug
Last Reviewed: July 1, 1999