diff --git a/lib/execjs/encoding.rb b/lib/execjs/encoding.rb index 406fb0d..50ef928 100644 --- a/lib/execjs/encoding.rb +++ b/lib/execjs/encoding.rb @@ -19,7 +19,7 @@ module ExecJS end else def encode(string) - string.encode('UTF-8') + string.encode(::Encoding::UTF_8) end end end