passbook
passbook copied to clipboard
Encoding::UndefinedConversionError ("\x9F" from ASCII-8BIT to UTF-8):
Hi, I've got this error:
Encoding::UndefinedConversionError ("\x9F" from ASCII-8BIT to UTF-8):
passbook = Passbook::PKPass.new json passbook.addFiles [Rails.root.join('certificates/icon.png'), Rails.root.join('certificates/[email protected]')] gen_pass = passbook.file send_file(gen_pass.path, type: 'application/vnd.apple.pkpass', disposition: 'attachment', filename: "pass.pkpass")
What I do wrong? Rais 6, ruby 2.7.1
I'm encountering this too. I think it's related to Ruby 2.7.1
This thread seems to diagnose it pretty thoroughly and links to a confirmed bug in Ruby 2.7.
I haven't found a resolution yet, but thought I'd leave those here for now.
https://github.com/clutch-holdings/passbook/commit/1a7c42b1f291fa39ff53e93be6c00c13362c97e7
^ this fork fixes that issue for me
Found somebody solution?