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::CompatibilityError when submitting Issue with diacritics and email notification (Bug #646)


Added by Piotr Całus at 2011-10-04 10:15 am. Updated at 2011-10-31 10:20 pm.


Status:Needs more information Start date:2011-10-04
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:Mail Sending
Target version:-
Remote issue URL: Affected version:2.2.0

Description

This error appears when my language is set to Polski (or other non-english) and I try to Submit an issue with polish diacritics AND sending Email notifications is turned on.

1. Turn on email notifications "For any event on all my projects"
2. Set language to Polski
3. Create new issue (PL: Nowe zagadnienie) and fill subject (PL: Temat) or/and description (PL: Opis) with some non-latin characters e.g. ąśćłóńęźż
4. Check Email issue updates
5. ...end Submit

Showing app/views/mailer/_issue_text_plain.rhtml where line #13 raised:

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

Extracted source (around line #13):

10: <% issue.custom_field_values.each do |c| %><%= c.custom_field.name %>: <%= show_value(c) %>
11: <% end %>
12: 
13: <%= issue.description %>

My configuration: Ruby 1.9.2, ChiliProject 2.2.0 with default encoding set to UTF-8 (patch from Redmine trunk)

if RUBY_VERSION >= '1.9'
  Encoding.default_external = 'UTF-8'
end


History

Updated by Piotr Całus at 2011-10-04 05:11 pm

Here is a solution https://www.chiliproject.org/issues/440#note-8

It helps for many other, even more upsetting, problems e.g. silent dropping Notes with diacritics during updating Issues (even with language set to English) or omitting warnings about blank fields if there are diacritics in Log time Comment.

Tested under Windows 7 [PL] with newest SQLite.

Updated by Holger Just at 2011-10-31 10:20 pm

Could you please check if the issue still persists on ChiliProject 2.4?

  • Status changed from Open to Needs more information

Also available in: Atom PDF