Thursday, July 2nd, 2009
More than you ever want to see about encoding
<>p>Paul Baukaus linked to jsescape, a little form that shows escaping and unescaping across a number of encodings.
Andrea Giammarchi had his own post on encodings in a different way…. as he talked about
en-code which you can check out in action here on the page that lets you do simple encodings, especially for source code, in short order.








Hmm — for some reason, AVG is reporting “http://www.3site.eu/encode/” as a threat. :/
@barryvan I do not know how it happened but apparently there was a js code at the end of the page which was not mine. I am investigating with my host provider right now it should be ok. Thanks and sorry for that
Really useful ! It would be great to enter text in one of the other text inputs and and the script encode/decode it in all the other encodings. Actually, this is only possible with the first input.
Thanks!
Seems broken in Firefox 3.5
@Darkimmortal, if you are talking about encode it should work in every browser … I mean, every, iPhone and Android Webkit versions included.
@Dion: It’s “Paul Bakaus”, not “Paul Baukaus”.
This is a tool I’ve wanted for a long time, in fact I’ve used it numerous times today. Thank you!
Cool. Thanks for the useful tips. I’ve been looking for this for a long time.
Very nice! I have my own encoder form that I frequently use, but not as complete and usable:
http://www.barelyfitz.com/projects/encoder/
You might want to distinguish between encodeURI vs. encodeURIComponent – both of which I find useful in different circumstances.
Another related project for easily encoding a whole PHP file into javascript:
http://www.barelyfitz.com/projects/jssyndicate/
Funny how we long lacked such a tool.
This is really useful for internationalization and figuring out how to insert static text that won’t break the page.
But the basic why escaping is useful and what characters will crash your web application using data via url-parameter, JSON … is more interessting than a plain converter!
http://united-coders.com/christian-harms/the-art-of-escaping-described-examples-and-worst-test-data