lib/wirecard_sepa/utils/template.rb in wirecard_sepa-0.0.1 vs lib/wirecard_sepa/utils/template.rb in wirecard_sepa-0.0.2
- old
+ new
@@ -6,11 +6,11 @@
def initialize(request)
@request = request
end
def to_xml
- xml_template = File.read template_path
- xml_template.gsub /{{\w+}}/, request_params
+ xml_template = File.open template_path, "r:UTF-8", &:read
+ xml_template.gsub(/{{\w+}}/, request_params)
end
private
def request_params