Skip to content


Subversion checkout URL

You can clone with
Download ZIP


RBX 1.9 Confused by UTF-8 Byte-Order-Marks in #1859

mysteriouspants opened this Issue · 4 comments

2 participants


While trying to isolate another unrelated bug, I found an encoding bug. On rubinius 2.0.0dev (1.9.3 d4b69010 yyyy-mm-dd JI) [x86_64-apple-darwin12.0.0] the select2.js file from the select2-rails gem causes Sprockets to freak out and die due to an invalid encoding. It detects "US-ASCII", when in fact it should be (and indeed, MRI/YARV detects the file to be) UTF-8.

I've proven both points in a completely unscientific "try it in both interpreters with a single exemplar file" test, and made a Gist out of it as well: The Gist includes the exact file which caused the ruckus; I hope to be able to figure out if it's just something special about that file (not likely) or if it's affecting all files with byte-order-marks (slightly more likely).


This should be fixed. Please reopen if it is not. Duplicates #1818.

@brixen brixen closed this

You can't see this because of Internet, but there are tears of joy in my eyes right now.

Thank you so much!


@NSError heh, thanks, sorry it's taken much longer than I expected. Ruby's encoding system horribly complex. But we'll get there.


Encoding (Ruby aside!) is horribly complex! That you're even willing to tackle this is truly amazing. Keep up the good work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.