lib/chronicle/etl/loaders/json_loader.rb in chronicle-etl-0.4.1 vs lib/chronicle/etl/loaders/json_loader.rb in chronicle-etl-0.4.2

- old
+ new

@@ -23,10 +23,10 @@ # (eg from sqlite database columns). We force conversion to UTF-8 # before converting into JSON encoded = serialized.transform_values do |value| next value unless value.is_a?(String) - value.encode('UTF-8', invalid: :replace, undef: :replace, replace: '?') + force_utf8(value) end @output.puts encoded.to_json end def finish