When deploying one of my apps, suddenly an error appeared:

Turns out the simple_form gem has the following authors in its gemspec:

One of the names has a character that causes issues when a server environment is not UTF8. A ticket was made but the gem autors decided that it was en environment problem and not a gem problem (and i agree).


The fix is pretty simple, we need to tell the server that the encoding should be UTF8 for the command that will be executed. Luckly we can do this in capistrano in a very easy way. Place this in your deploy.rb file and everything shoud work as expected!