incompatible character encodings: UTF-8 and ASCII-8BIT problem rails refinerycms

    you can fix this by forcing encoding to UTF-8 I have overridden the layouts/application.html.erb for refinerycms ubuntu:$ rake refinery:override view=layouts/application
    Go to views/layouts/application.html.erb and change

      <%= yield %>

      to


      <%= yield.dup.force_encoding(Encoding::UTF_8) %>

      Fixed encoding problem for me you can also try to change db encoding that might work for you
    5
    Average: 5 (1 vote)