00741: Escape characters in URLs

Summary: Escape characters in URLs
Created: 2006-05-19 22:44
Status: Closed - use %-escapes
Category: Feature
From: Simon
Assigned:
Priority: 4
Version: any
OS: any

Description: Links has a great feature where Parentheses suppress the display of text.

The requirements is to escape the Parentheses in the case where a URL includes them or in this case a file://name(fn)

[[http://www.doc.govt.nz/Community/001~For-Schools/003~Field-Trips/005~Wanganui/Sixtus-Lodge-Area-(Ruahine-Forest-Park).pdf]]

[[http://www.doc.govt.nz/Community/001~For-Schools/003~Field-Trips/005~Wanganui/Sixtus-Lodge-Area-%28Ruahine-Forest-Park%29.pdf]]

[[http://www.doc.govt.nz/Community/001~For-Schools/003~Field-Trips/005~Wanganui/Sixtus-Lodge-Area-(Ruahine-Forest-Park).pdf]]

http://www.doc.govt.nz/Community/001~For-Schools/003~Field-Trips/005~Wanganui/Sixtus-Lodge-Area-.pdf

http://www.doc.govt.nz/Community/001~For-Schools/003~Field-Trips/005~Wanganui/Sixtus-Lodge-Area-%28Ruahine-Forest-Park%29.pdf

http://www.doc.govt.nz/Community/001~For-Schools/003~Field-Trips/005~Wanganui/Sixtus-Lodge-Area-(Ruahine-Forest-Park).pdf

The file name has parenthesis in it, so the URI [[file://example(1)/text.txt]] does not work unless thee the brackets can be escaped (eg perhaps using a back tick or %)''

[[file://example(1)/text.txt]]

file://example/text.txt

note a work around is to use ( for ( and ) for ). (%40 and%41 doesn't work).

See also

  • FixURL   Encode special characters in link addresses

Use %28 and %29 to encode parentheses in links.

--Pm