URL-encode fragment identifier?

Christian Roth

Usenet Archive
Joined
Aug 18, 2002
Messages
14
Reaction score
0
Hi,

having searched the net for answers, I have found both points of view, namely that fragment identifiers need to be URL-encoded - or that they must not.

Is there some definitive resource or settled consensus as to whether the fragment identifier part of a URL must be URL encoded (i.e. certain characters outside the ASCII range be escaped using '%HH') or that they mustn't?

I am asking specifically for XML documents supporting XLink, so as an example, how does an internal link to this element (id being of type ID):

<anchor id="X&auml;X" />

need to be encoded to be compatible with XLink compatible, XML supporting processing systems, form (a) or form (b):

(a) <ref xlink:href="#X&auml;X" />
(b) <ref xlink:href="#X%E4X" />

Regards, Christian.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,042
Messages
3,104,223
Members
248,131
Latest member
Tonypshaw1

Latest Threads

Top