Thursday, July 2nd, 2009

More than you ever want to see about encoding

Category: Tip, Utility

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.

Posted by Dion Almaer at 5:03 am

3.4 rating from 18 votes


Comments feed TrackBack URI

Hmm — for some reason, AVG is reporting “” as a threat. :/

Comment by barryvan — July 2, 2009

@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

Comment by WebReflection — July 2, 2009

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.


Comment by jeanph01 — July 2, 2009

Seems broken in Firefox 3.5

Comment by Darkimmortal — July 2, 2009

@Darkimmortal, if you are talking about encode it should work in every browser … I mean, every, iPhone and Android Webkit versions included.

Comment by WebReflection — July 2, 2009

@Dion: It’s “Paul Bakaus”, not “Paul Baukaus”.

Comment by andysky — July 2, 2009

This is a tool I’ve wanted for a long time, in fact I’ve used it numerous times today. Thank you!

Comment by eyelidlessness — July 3, 2009

Cool. Thanks for the useful tips. I’ve been looking for this for a long time.

Comment by gniuz — July 7, 2009

Very nice! I have my own encoder form that I frequently use, but not as complete and usable:

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:

Comment by BarelyFitz — July 7, 2009

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.

Comment by hdragomir — July 12, 2009

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!

Comment by wingi — December 16, 2009

Leave a comment

You must be logged in to post a comment.