Spreadsheet::Errors::UnknownCodepage (Unknown Codepage 0xa4a6):

24 views
Skip to first unread message

Diki Zaelani

unread,
Aug 29, 2018, 11:00:07 PM8/29/18
to spreadsheet
hi i got this error

content =  params[:record][:file].tempfile
book = Spreadsheet.new(content.to_path.to_s)
sheet1 = book.worksheet 'Sheet1'

Spreadsheet::Errors::UnknownCodepage (Unknown Codepage 0xa4a6):
  app/controllers/hrd_controller.rb:1578:in `upload'


  Rendered /home/dikiz/.rvm/gems/ruby-2.1.7@rails4.1/gems/actionpack-4.1.14/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.4ms)
  Rendered /home/dikiz/.rvm/gems/ruby-2.1.7@rails4.1/gems/actionpack-4.1.14/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb (0.4ms)
  Rendered /home/dikiz/.rvm/gems/ruby-2.1.7@rails4.1/gems/actionpack-4.1.14/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb (6.3ms)
  Rendered /home/dikiz/.rvm/gems/ruby-2.1.7@rails4.1/gems/actionpack-4.1.14/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb (17.2ms)

Reply all
Reply to author
Forward
0 new messages