caxlsx / caxlsx_rails

A Rails plugin to provide templates for the axlsx gem
MIT License
744 stars 84 forks source link

Hi, I have a problem invalid byte sequence in UTF-8: #80

Closed arigatodon closed 6 years ago

arigatodon commented 7 years ago

Hello my problem happens when you respond respond_to do |format| format.xlsx {render xlsx: xlsx,filename: "ler.xlsx"} end I was seeing other solutions but I did not understand how to use it with the respond

straydogstudio commented 7 years ago

@arigatodon There could be several reasons, including the data itself. What is your template at this point?

arigatodon commented 7 years ago

this is the content template http://bit.ly/2ro18Qb

straydogstudio commented 7 years ago

@arigatodon Did you get it working? Sorry for the delay. I would first try removing both loops and returning just your headers (make sure there isn't a problem with your data.) Then I would strip out the styles to make sure they aren't the issue.

straydogstudio commented 7 years ago

Incidentally your respond_to statement looks fine.