ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Encoding bug with Ruby 1.9.3 (Bug #1242)


Added by Skaag Argonius at 2013-02-22 05:49 am.


Status:Open Start date:2013-02-22
Priority:High Due date:
Assignee:- % Done:

0%

Category:Text formatting
Target version:-
Remote issue URL: Affected version:3.7.0

Description

If the language is set to Hebrew (UTF-8 and RTL), and only in some tickets (not all!), and only if the Textile engine is enabled, I get the following error:

Processing IssuesController#show (for 72.225.221.14 at 2013-02-22 05:36:21) [GET]
Parameters: {"controller"=>"issues", "action"=>"show", "id"=>"3857"}
Rendering template within layouts/base
Rendering issues/show.rhtml

ActionView::TemplateError (incompatible character encodings: ASCII-8BIT and UTF-8) on line #2 of app/views/issues/_history.rhtml:
1: <% for journal in journals >
2: <%= render_journal issue, journal, :edit_permission => :edit_issue_notes,
3: :edit_own_permission => :edit_own_issue_notes %>
4: <%= call_hook(:view_issues_history_journal_bottom, { :journal => journal }) %>
5: <
end %>

app/helpers/journals_helper.rb:59:in `block (2 levels) in render_journal_details'
app/helpers/journals_helper.rb:58:in `each'
app/helpers/journals_helper.rb:58:in `collect'
app/helpers/journals_helper.rb:58:in `block in render_journal_details'
app/helpers/journals_helper.rb:57:in `render_journal_details'
app/helpers/journals_helper.rb:32:in `render_journal'
app/views/issues/_history.rhtml:2:in `block in _run_rhtml_app47views47issues47_history46rhtml_locals_history_issue_journals_object'
app/views/issues/_history.rhtml:1:in `each'
app/views/issues/_history.rhtml:1:in `_run_rhtml_app47views47issues47_history46rhtml_locals_history_issue_journals_object'
app/views/issues/show.rhtml:103:in `_run_rhtml_app47views47issues47show46rhtml'
app/controllers/issues_controller.rb:103:in `block (2 levels) in show'
app/controllers/issues_controller.rb:102:in `show'
&lt;internal:prelude&gt;:10:in `synchronize'
thin (1.5.0) lib/thin/connection.rb:81:in `block in pre_process'
thin (1.5.0) lib/thin/connection.rb:79:in `catch'
thin (1.5.0) lib/thin/connection.rb:79:in `pre_process'
thin (1.5.0) lib/thin/connection.rb:54:in `process'
thin (1.5.0) lib/thin/connection.rb:39:in `receive_data'
eventmachine (1.0.0) lib/eventmachine.rb:187:in `run_machine'
eventmachine (1.0.0) lib/eventmachine.rb:187:in `run'
thin (1.5.0) lib/thin/backends/base.rb:63:in `start'
thin (1.5.0) lib/thin/server.rb:159:in `start'
thin (1.5.0) lib/thin/controllers/controller.rb:86:in `start'
thin (1.5.0) lib/thin/runner.rb:187:in `run_command'
thin (1.5.0) lib/thin/runner.rb:152:in `run!'
thin (1.5.0) bin/thin:6:in `&lt;top (required)&gt;'
/usr/local/rvm/gems/ruby-1.9.3-p374/bin/thin:19:in `load'
/usr/local/rvm/gems/ruby-1.9.3-p374/bin/thin:19:in `&lt;main&gt;'
/usr/local/rvm/gems/ruby-1.9.3-p374/bin/ruby_noexec_wrapper:14:in `eval'
/usr/local/rvm/gems/ruby-1.9.3-p374/bin/ruby_noexec_wrapper:14:in `&lt;main&gt;'

Rendering /srv/www/chiliproject/public/500.html (500 Internal Server Error)

You can see two issues:

http://track.nsa.co.il/issues/3857
http://track.nsa.co.il/issues/3858

The first one gives off an error 500
The second one displays just fine


History

Also available in: Atom PDF