%2520 with URL encoding

53 views
Skip to first unread message

A Gloom

unread,
Sep 18, 2019, 2:17:30 AM9/18/19
to TiddlyWiki
How do I get TW to URL encode spaces with %2520 (instead of %20)?  %2520 is what Github encodes blank spaces in the official TW static pages' URL's.

Jeremy Ruston

unread,
Sep 18, 2019, 4:39:39 AM9/18/19
to tiddl...@googlegroups.com
Hi Gloom


How do I get TW to URL encode spaces with %2520 (instead of %20)?  %2520 is what Github encodes blank spaces in the official TW static pages' URL's.

The URLs are double encoded. The first encoding is so that we can map every tiddler title to a valid URL, and the second is done by the browser.

Best wishes

Jeremy

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/7c611fe0-4d10-4f32-b926-7c368d585e5e%40googlegroups.com.

A Gloom

unread,
Sep 18, 2019, 6:09:43 AM9/18/19
to TiddlyWiki
Hello Jeremy,

The URLs are double encoded. The first encoding is so that we can map every tiddler title to a valid URL, and the second is done by the browser.

TY for the quick reply

The searching I did said it was that (double encoding of %20) but made it sound like it was an error, but here it's intentional I take it.

It's done with these if i'm understanding correctly

but they can't be used in a browser it says, only for export.

What I'm attempting to do is double encode a selection that is to be used in a macro to generate a <a href> link for TW static pages-- see the Table of Contents select menu in the TWcom static page viewer attachment.

A similiar item i'm grappling with is writing a uri encoding to a temp file-- I got the view macro to single encode and display, but can't get it write the encoded result -- still shifting through documentation-- there's so many widgets and code i'm still not familiar with.  See attached URL encode/decode utility.
URL encode_decode utility.tid
TWcom static page viewer.tid
Reply all
Reply to author
Forward
0 new messages