From b4d7a08aaf50d3a7761d47614de5c999dcca25e0 Mon Sep 17 00:00:00 2001 From: Shekhar Madnawat Date: Tue, 6 Feb 2024 17:11:00 +0530 Subject: [PATCH] pkpass encoding for passbook utf8 added --- lib/passbook/pkpass.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/passbook/pkpass.rb b/lib/passbook/pkpass.rb index fbd48c0..b7d57a9 100644 --- a/lib/passbook/pkpass.rb +++ b/lib/passbook/pkpass.rb @@ -50,7 +50,7 @@ def file(options = {}) options[:file_name] ||= 'pass.pkpass' temp_file = Tempfile.new(options[:file_name]) - temp_file.write self.stream.string + temp_file.write self.stream.string.force_encoding("UTF-8") temp_file.close temp_file