Project

General

Profile

Encoding:CompatibilityError When editing Wiki

Added by Gabriela Davila almost 13 years ago

I got this error when I tried to edit an item on Wiki. I use utf8 at my database and at the system.

Before I was using Ruby 1.9.2 and a thread at this forum show me to use the 1.8.7, after I made a downgrade, this error doenst appear anymore, but I got Internal server Error.

My Redmine Version is 1.1.2

I looked at my production.log and got this:

ActionView::TemplateError (incompatible character encodings: ASCII-8BIT and UTF-8) on line #8 of app/views/wiki/edit.rhtml:
5: <%= error_messages_for 'content' %>
6: 
7: <p><%= f.text_area :text, :cols => 100, :rows => 25, :class => 'wiki-edit', :accesskey => accesskey(:edit) %></p>
8: <p><label><%= l(:field_comments) %></label><br /><%= f.text_field :comments, :size => 120 %></p>
9: <p><label><%=l(:label_attachment_plural)%></label><br /><%= render :partial => 'attachments/form' %></p>
10: 
11: <p><%= submit_tag l(:button_save) %>

    app/views/wiki/edit.rhtml:8:in `block in _run_rhtml_app47views47wiki47edit46rhtml'
    app/views/wiki/edit.rhtml:3:in `_run_rhtml_app47views47wiki47edit46rhtml'
    <internal:prelude>:10:in `synchronize'
    C:/Ruby192/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
    C:/Ruby192/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
    C:/Ruby192/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'

Rendering C:/xampp/htdocs/redmine/public/500.html (500 Internal Server Error)

Processing WikiController#edit (for 10.160.3.114 at 2011-04-07 16:53:23) [GET]
  Parameters: {"controller"=>"wiki", "action"=>"edit", "project_id"=>"dummy-library", "id"=>"Wiki"}
Rendering template within layouts/base
Rendering wiki/edit

ActionView::TemplateError (incompatible character encodings: ASCII-8BIT and UTF-8) on line #8 of app/views/wiki/edit.rhtml:
5: <%= error_messages_for 'content' %>
6: 
7: <p><%= f.text_area :text, :cols => 100, :rows => 25, :class => 'wiki-edit', :accesskey => accesskey(:edit) %></p>
8: <p><label><%= l(:field_comments) %></label><br /><%= f.text_field :comments, :size => 120 %></p>
9: <p><label><%=l(:label_attachment_plural)%></label><br /><%= render :partial => 'attachments/form' %></p>
10: 
11: <p><%= submit_tag l(:button_save) %>

    app/views/wiki/edit.rhtml:8:in `block in _run_rhtml_app47views47wiki47edit46rhtml'
    app/views/wiki/edit.rhtml:3:in `_run_rhtml_app47views47wiki47edit46rhtml'
    <internal:prelude>:10:in `synchronize'
    C:/Ruby192/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
    C:/Ruby192/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
    C:/Ruby192/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'

Rendering C:/xampp/htdocs/redmine/public/500.html (500 Internal Server Error)

I hope someone could have some idea! :)


Replies (1)

RE: Encoding:CompatibilityError When editing Wiki - Added by Roger Griffiths almost 11 years ago

I have recently encountered a similar issue when editing a ticket in our Redmine system (Redmine-2.3.0 on openSUSE 12.3).

I updated a ticket with an entry containing the mathematical symbols - small rho, small pi, and small lambda along with the superscript 2 character from the Arial character set (using the Windows 7 "Character Map" tool).

Now I am unable to access that ticket due to:-
  • ActionView::Template::Error (incompatible character encodings: ASCII-8BIT and UTF-8)
    • First line reported: app/views/issues/show.html.erb:120
    (1-1/1)