Hi Tobias

Anything to do with encodings is liable to be a little mindbending.

The key here is to look at the actual static files themselves, rather than the 
URLs that are used to access them. For example, the link to the static tiddler  
http://tiddlywiki.com/static/Working%2520with%2520TiddlyWiki.html ends up at 
the following file:

https://github.com/Jermolene/jermolene.github.io/blob/master/static/Working%2520with%2520TiddlyWiki.html

Again, there’s the double, encoding, but if you visit the URL you’ll see the 
file path given as jermolene.github.io/static/Working%20with%20TiddlyWiki.html.

What’s going in is that:

a) TiddlyWiki uses URI encoding to ensure that troublesome filename characters 
like the colon and slash are safely escaped
b) The browser uses a further level of URI encoding to encode unsafe URI 
characters like the percentage sign. This encoding affects the URI, not the 
underlying file path

As I say, it’s mindbending stuff.

Best wishes

Jeremy.


https://github.com/Jermolene/jermolene.github.io/blob/master/static/Working%2520with%2520TiddlyWiki.html

> On 4 Oct 2015, at 18:04, Siniy-Kit <[email protected]> wrote:
> 
> https://groups.google.com/forum/#!searchin/tiddlywiki/sini-kit%7Csort:relevance/tiddlywiki/4QfzY0HqPiY/wg5SKJOJkLUJ
>  
> <https://groups.google.com/forum/#!searchin/tiddlywiki/sini-kit%7Csort:relevance/tiddlywiki/4QfzY0HqPiY/wg5SKJOJkLUJ>
> 
> as far as i understand it is standart.    <$view field="title" 
> format="doubleurlencoded"/>
> 
> четверг, 1 октября 2015 г., 22:50:13 UTC+3 пользователь Tobias Beer написал:
> For example,
> 
> Taking tiddler Working with TiddlyWiki as an example...
> 
> This is what the permalink looks like:
>   http://tiddlywiki.com/#Working%20with%20TiddlyWiki 
> <http://tiddlywiki.com/#Working%20with%20TiddlyWiki>
> 
> ...and this is what the link to the static page looks like...
>   http://tiddlywiki.com/static/Working%2520with%2520TiddlyWiki.html 
> <http://tiddlywiki.com/static/Working%20with%20TiddlyWiki.html>
> 
> Obviously static links are in a subdirectory, but how come
> the tiddler titles have a different rather weird encoding?
> 
> Searching for %2520 suggests it's a case of double-encoding.
> Can we do away with it?
> 
> Best wishes,
> 
> — tb
> 
> -- 
> 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 [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/tiddlywiki 
> <http://groups.google.com/group/tiddlywiki>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/177b48d3-7cae-4290-9ba8-af3a98fef151%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/177b48d3-7cae-4290-9ba8-af3a98fef151%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/91375983-8415-4BC3-8253-88B2C3664977%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to