Use Pathname#read again but with force_encoding
Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
This commit is contained in:
parent
0355f07e0d
commit
b6fbd51f0e
@ -58,7 +58,7 @@ module Readall
|
||||
next if valid == true || valid&.include?(bottle_tag)
|
||||
|
||||
formula_name = file.basename(".rb").to_s
|
||||
formula_contents = File.read(file, encoding: "UTF-8")
|
||||
formula_contents = file.read.force_encoding("UTF-8")
|
||||
|
||||
readall_namespace = "ReadallNamespace"
|
||||
readall_formula_class = Formulary.load_formula(formula_name, file, formula_contents, readall_namespace,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user