1) Last time I looked encodeURIComponent does not encode URLs in a
sufficient manner. For example, it does not turn "[]" into
corresponding entities. Therefore, tiddler titles with blank spaces
might fail ...at least worth testing (again). On the other hand... I
think it should actually be facebook's serverside that does the
propper encoding... assuming that any non-standard characters in the
url component are NOT eaten up for some security reason.

2) Trying TiddlyWiki URL's with [1] seems to work when pasted from the
chrome address bar. However, the "same" URL - above all, any special
characters in it - might look quite different in firefox, ie or opera.

3) Probably overkill, but maybe there's a url shortening service
outthere that would allow (via xhr) to shorten url's which contain
hashes, umlaute, brackets, etc.

For performance reasons (on both ends), such a request should
definetely only be fired, whenever a user clicks on the button, not
when tiddlers load ...which means that some indication of "please
wait"or error handling might be of need.

Obviously, this would obfuscate the actual destination of the link and
possibly mess with facebooks statistics as to how many people like the
actual destination's url, e.g. people using their own shareaholics (or
other) instead of your like button.

X) All in all, I would tend to believe that the problem entirely lies
in (incredibly huge) browser differences as for encoding uri's. There
just does not seem to exist some agreed upon standard as to how (and
when) url's are to be properly encoded ...which kind of sucks.

On the other hand, encodeURIComponent does not harmonize crucial
characters (yet) ...such that url's can be generated inside TW which
would work across all major browsers... unless we're talking urls
which do not contain a lot more than latin, alphanumeric characters.

Cheers, Tobias.

[1] http://developers.facebook.com/docs/reference/plugins/like

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to