sstephenson/execjs — pull request #125 by jasongilman (2013-04-25 12:53:22+00:00)
Title: Adding '#encoding: UTF-8' comment to fix 'incompatible character encoding: /[\u0080-\uffff]/' error

I kept experiencing the following error using execjs with JRuby

SyntaxError - (RegexpError) incompatible character encoding: /[\u0080-\uffff]/:
vendor/bundle/jruby/1.9/gems/execjs-1.4.0/lib/execjs/external_runtime.rb:74:in `encode_unicode_codepoints'

The error goes away if the # encoding: UTF-8 comment is added at the top of external_runtime.rb.