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 'v8'
require 'json' require 'json'
Encoding.default_external = Encoding::UTF_8
class Wappalyzer class Wappalyzer
def initialize def initialize
@realdir = File.dirname(File.realpath(__FILE__)) @realdir = File.dirname(File.realpath(__FILE__))

Loading…
Cancel
Save