JavaScript rocks

The JavaScript programming language—the language I work with most often—is simply terrific, a sentiment that was reinforced after recently programming a simple applet in Java. I love that JavaScript is available on practically any computer by virtue of being a part of modern web browsers. Unfortunately, few people recognize the value of it. Douglas Crockford does. I found his article JavaScript: The World’s Most Misunderstood Programming Language quite enjoyable and helpful.

Encoding and escaping unicode characters

In working on a web-based application that needs to support unicode and other DBCS encodings, I created a simple bookmarklet that converts a string into HTML entities. You can find it on the bottom of my bookmarklets page if you happen to need it.

On a somewhat related note, I keep forgetting to write about the reasonably successful conclusion of my quest to find a way to URL encode UTF8 characters for Netscape 4.x and Internet Explorer 5.0. Several people wrote excellent comments and even kindly sent me example code for reproducing the JavaScript encodeURIComponent() function on those browsers that don’t support it natively. Thanks for the help!