documentcloud / jammit

Industrial Strength Asset Packaging for Rails
http://documentcloud.github.com/jammit/
MIT License
1.16k stars 197 forks source link

Remove the BOM from UTF-8 files before concatenation #199

Open carlhoerberg opened 12 years ago

carlhoerberg commented 12 years ago

Uglifier chokes on concatened files with utf8 BOM (https://github.com/lautis/uglifier/issues/10#issuecomment-1297699). i think jammit should remove the bom before concatenating the files. sprockets does it this way: https://github.com/sstephenson/sprockets/commit/225e079ddc09293a915bea19ffe97d7f44f22cb5 if it's to any help..