From d0c3b8bb53e89ec5c1652aaf47758f8bac06d372 Mon Sep 17 00:00:00 2001 From: Alexey Lapitsky Date: Wed, 19 Jun 2013 00:01:00 +0200 Subject: [PATCH] Use utf8 for external encoding in the ruby driver Fixes Encoding::InvalidByteSequenceError while parsing apps.json --- drivers/ruby/wappalyzer.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/ruby/wappalyzer.rb b/drivers/ruby/wappalyzer.rb index f7e0f163e..d66b9a01e 100755 --- a/drivers/ruby/wappalyzer.rb +++ b/drivers/ruby/wappalyzer.rb @@ -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__))