Friday, January 13, 2012

 

JavaScript's encodeURIComponent and character sets

The EcmaScript 5 standard (section 15.1.3.4) and the Mozilla Developer Network page on encodeURIComponent both say that the string will be encoded to UTF-8, regardless of the underlying page's character set. That seemed entirely too convenient to believe, so I wrote a page that would let me exercise it. I hit it with modern browsers as well as Firefox 2 and Internet Explorer 5.5 and 6. Amazingly, they handled it correctly, even for pages in obscure character sets like GBK.

 Sleep well tonight in the knowledge that your characters are safe in hands of encodeURIComponent.

Thursday, October 20, 2011

 

How I spent my summer vacation

Backpacking!

Total: 16 days, ~120 miles

It was a good summer. (Apologies for the painfully white guy in the pictures.)

Monday, July 18, 2011

 

What Stuck with Me from GlueCon

I recently gave a tech talk reflecting on some of the highlights of GlueCon. It covered the failure of SOAP, a survey of NoSQL data models, and a brief introduction to node.js.


This page is powered by Blogger. Isn't yours?