jashkenas/coffee-script — pull request #2389 by milgner (2012-06-19 09:50:26+00:00)
Title: Add support for UTF8 byte order marker

This commits adds support for UTF8 byte order markers. It works in two ways:

- .coffee files containing a BOM will filter it out, preventing it from appearing in the middle of the generated JavaScript
- when writing .js files, an optional command line switch -u or --utf8bom will prepend a BOM to the generated file

This is somewhat of a hot fix because post-processing the generated files with iconv takes too much time out of our build process, but maybe some other users find this useful, too.

CC @pke @superquadratic @doo