Redering UTF-8 characters in issue body
Added by Richard Lee almost 15 years ago
Hi redmine forum,
I have a problem when I copy emails that contain non-standard characters into the editor on the issues page. I understand that this is a Rails issue when it tries to render utf-8 characters into ASCII templates.
I've tried using two different utf-8 friendly MySQL drivers for Ruby with varying results.
Has anybody else come across this problem?
My ruby is 1.9.1, my rails is 2.3.5, my rake is 0.8.7 and my redmine is 0.9.3 . I've included the error log below.
Regards,
Richard
Processing IssuesController#show (for 87.194.34.227 at 2010-03-12 16:53:08) [GET]
Parameters: {"controller"=>"issues", "action"=>"show", "id"=>"7"}
Rendering template within layouts/base
Rendering issues/show.rhtml
ActionView::TemplateError (incompatible character encodings: ASCII-8BIT and UTF-8) on line #97 of app/views/issues/show.rhtml:
94: <% if authorize_for('issues', 'edit') >
95: <div id="update" style="display:none;">
96: <h3><= l(:button_update) ></h3>
97: <= render :partial => 'edit' >
98: </div>
99: < end %>
100:
app/views/issues/show.rhtml:97:in `_run_rhtml_app47views47issues47show46rhtml'
app/controllers/issues_controller.rb:117:in `block (2 levels) in show'
app/controllers/issues_controller.rb:116:in `show'
<internal:prelude>:8:in `synchronize'
passenger (2.2.11) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
passenger (2.2.11) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:418:in `start_request_handler'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:358:in `block in handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/utils.rb:184:in `safe_fork'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:354:in `handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:163:in `start'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:213:in `start'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:262:in `block (2 levels) in spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:256:in `block in spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:80:in `block in synchronize'
<internal:prelude>:8:in `synchronize'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
Replies (1)
RE: Redering UTF-8 characters in issue body - Added by Richard Lee almost 15 years ago
Sorry I should RTFM and use Ruby 1.8.7