passbook icon indicating copy to clipboard operation
passbook copied to clipboard

Encoding::UndefinedConversionError ("\x9F" from ASCII-8BIT to UTF-8):

Open kuzevanoff opened this issue 4 years ago • 3 comments

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

kuzevanoff avatar May 25 '20 18:05 kuzevanoff

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.

alexdunae avatar Jun 12 '20 23:06 alexdunae

https://github.com/clutch-holdings/passbook/commit/1a7c42b1f291fa39ff53e93be6c00c13362c97e7

^ this fork fixes that issue for me

mbajur avatar Aug 18 '20 18:08 mbajur

Found somebody solution?

orest-kostiuk avatar Sep 21 '20 11:09 orest-kostiuk