Report this

What is the reason for this report?

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

Posted on June 29, 2014

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 %> 
66: 
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?



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!

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.

How did you install Redmine? Are you using the one-click Redmine application image?

yes… I installed one-click Redmine application image on my droplet (107.170.165.73)

Hi Kamal, I update the file my.conf just like the post said but everything it’s the same :(

Now my new redmine.log said:

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 %>
    66: 
  app/views/issues/index.html.erb:63:in `_app_views_issues_index_html_erb___590543777811004549_61670660'
  app/controllers/issues_controller.rb:87:in `block (2 levels) in index'
  app/controllers/issues_controller.rb:86:in `index'

The wired thing is that in page 107.170.165.73/project_name/activity the compress view of our issues shows perfect, but when we were access to one specific issue the error above always shows.

This is a requirement thing to start a new quality process of our startup, so we are really need this response.

Many thanks

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.