frozon / passbook

Passbook gem let's you create pkpass for passbook iOS 6
MIT License
234 stars 66 forks source link

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

Open kuzevanoff opened 4 years ago

kuzevanoff commented 4 years ago

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/icon@2x.png')] 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

alexdunae commented 4 years ago

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.

mbajur commented 3 years ago

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

^ this fork fixes that issue for me

orest-kostiuk commented 3 years ago

Found somebody solution?