I’ve recently seen two bug reports about the behavior of the MarsEdit “Bookmarklet,” the little link that you can stick in your browser’s toolbar to easily “reblog” stuff that you find on the web. The gist of the problem is that special characters end up getting junked in transition so that they show up as useless parts of escape codes in MarsEdit. That’s no fun for anybody.
Following a lead from Takaaki, who reported one of the issues, I found what appears to be a sane workaround. The bookmarklet needs to use “encodeURIComponent” instead of “escape” to sanitize the input strings for the “magic URL” that sends the page to MarsEdit. (Read more about the various escaping mechanisms and when to use them).
The best part about these bugs is I can release a fix without updating MarsEdit itself. The behavior of MarsEdit seems to be perfect when the bookmarklet is altered to use the proper escaping function. So if you’ve run into this problem, please give the new bookmarklet a try:
Post with MarsEdit (drag link to bookmark bar)
And be sure to let me know if there are other issues which should be addressed in the bookmarklet for the next MarsEdit release.