Use utf8 for external encoding in the ruby driver

Fixes Encoding::InvalidByteSequenceError while parsing apps.json
main
Alexey Lapitsky 12 years ago
parent ad4196188d
commit d0c3b8bb53

@ -4,6 +4,8 @@ require 'net/http'
require 'v8'
require 'json'
Encoding.default_external = Encoding::UTF_8
class Wappalyzer
def initialize
@realdir = File.dirname(File.realpath(__FILE__))