REDMINE - incompatible character encodings: ASCII-8BIT and UTF-8

I’m having a trouble seeing pages that uses Spanish Charset (i.e accents, ñ, etc).

The log to one page (issues), for example tells my:

ActionView::Template::Error (incompatible character encodings: UTF-8 and ASCII-8BIT): 
60: <% if @issues.empty? %> 
61: <p class="nodata"><%= l(:label_no_data) %></p> 
62: <% else %> 
63: <%= render :partial => 'issues/list', :locals => {:issues => @issues, :query => @query} %> 
64: <p class="pagination"><%= pagination_links_full @issue_pages, @issue_count %></p> 
65: <% end %> 
app/views/issues/index.html.erb:63:in `_app_views_issues_index_html_erb___1752021154048040311_51435780' 
app/controllers/issues_controller.rb:87:in `block (2 levels) in index' 
app/controllers/issues_controller.rb:86:in `index'

Seeing the solutions in many redmine wikis / blogs is to run gem install mysql2 (i did it) and then change the database.yml adapter to mysql2 (i also did it).

But everything it’s the same.

Could yoy help me with this problem?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

You can move tmp to tmp_old and create tmp -> change owner to website owner in redmine and restart redmine (httpd if you run passenger).

I have done it :)

I install the last version of mysql2 (0.3.16), then i change de GEMFILE to set this version, then i did a bundle update.

And that’s it :)

May I ask you an additional check?

Could you create an issue with the subject and description that i gave you?

Because we had this bug when we create an issue with spanish characters.

Many thanks