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 error on Ruby 1.9 in pdf exports (Bug #437)
Line 144 in lib/redmine/export/pdf.rb contains invalid UTF-8 characters which break compatibility on Ruby 1.9.
You have not imported our fixing.
$ irb ruby-1.9.2-p136 :001 > txt = "Felix SchÃ¤fer" => "Felix SchÃ¤fer" ruby-1.9.2-p136 :002 > txt.force_encoding("ASCII-8BIT") => "Felix Sch\xC3\xA4fer" ruby-1.9.2-p136 :003 > txt = txt.gsub(/[Ã¢â‚¬Å“Ã¢â‚¬ï¿½]/, '"') if txt Encoding::CompatibilityError: incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string) from (irb):3:in `gsub' from (irb):3 from /home/xxxxx/.rvm/rubies/ruby-1.9.2-p136/bin/irb:16:in `<main>' ruby-1.9.2-p136 :004 > txt.force_encoding("UTF-8") => "Felix SchÃ¤fer" ruby-1.9.2-p136 :005 > txt = txt.gsub(/[Ã¢â‚¬Å“Ã¢â‚¬ï¿½]/, '"') if txt => "Felix SchÃ¤fer"
Toshi MARUYAMA wrote:
There is no test for this issue.
We fixed on redmine after revision 5300 which chili has not yet imported.