Project

General

Profile

Actions

Defect #9792

closed

Ruby 1.9: [v1.3.0] Error: incompatible character encodings for it translation on Calendar page

Added by Yuri Bugelli almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Ruby support
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

After updating to 1.3.0 I continue to get the following error when I access the calendar page (it works if I change language to english):

ActionView::TemplateError (incompatible character encodings: UTF-8 and ASCII-8BIT) on line #13 of app/views/calendars/show.html.erb:
10: </fieldset>
11: 
12: <p style="float:right;">
13:   <%= link_to_previous_month(@year, @month) %> | <%= link_to_next_month(@year, @month) %>
14: </p>
15: 
16: <p class="buttons">

    app/views/calendars/show.html.erb:13:in `concat'
    app/views/calendars/show.html.erb:13:in `block in _run_erb_app47views47calendars47show46html46erb'
    app/views/calendars/show.html.erb:3
    <internal:prelude>:10:in `synchronize'
    passenger (3.0.11) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
    passenger (3.0.11) lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
    passenger (3.0.11) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
    passenger (3.0.11) lib/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler'
    passenger (3.0.11) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `block in handle_spawn_application'
    passenger (3.0.11) lib/phusion_passenger/utils.rb:479:in `safe_fork'
    passenger (3.0.11) lib/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application'
    passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
    passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
    passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:180:in `start'
    passenger (3.0.11) lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start'
    passenger (3.0.11) lib/phusion_passenger/spawn_manager.rb:219:in `block (2 levels) in spawn_rails_application'
    passenger (3.0.11) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
    passenger (3.0.11) lib/phusion_passenger/spawn_manager.rb:214:in `block in spawn_rails_application'
    passenger (3.0.11) lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize'
    <internal:prelude>:10:in `synchronize'
    passenger (3.0.11) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
    passenger (3.0.11) lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application'
    passenger (3.0.11) lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application'
    passenger (3.0.11) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
    passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
    passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
    passenger (3.0.11) helper-scripts/passenger-spawn-server:99:in `<main>'

Rendering /srv/www/applications/redmine/public/500.html (500 Internal Server Error)
Actions #1

Updated by Etienne Massip almost 13 years ago

Which version of Ruby (see SubmittingBugs)?

Actions #2

Updated by Yuri Bugelli almost 13 years ago

Sorry, my fault.

About your application's environment
Ruby version              1.9.2 (i486-linux)
RubyGems version          1.3.7
Rack version              1.1.2
Rails version             2.3.14
Active Record version     2.3.14
Active Resource version   2.3.14
Action Mailer version     2.3.14
Active Support version    2.3.14
Edge Rails revision       unknown
Application root          /srv/www/applications/redmine
Environment               production
Database adapter          postgresql
Database schema version   20110902000000

About your Redmine plugins
Bulk Time Entry               0.5.0
Mylyn Connector plugin        2.7.5.stable
Redmine Checkout plugin       0.5
Redmine Time Tracker plugin   0.4
Timesheet Plugin              0.6.0
Actions #3

Updated by Etienne Massip almost 13 years ago

  • Category changed from Translations to Calendar
Actions #4

Updated by Toshi MARUYAMA almost 13 years ago

  • Subject changed from [v1.3.0] Error: incompatible character encodings for it translation on Calendar page to Ruby 1.9: [v1.3.0] Error: incompatible character encodings for it translation on Calendar page
Actions #5

Updated by Jean-Philippe Lang almost 13 years ago

  • Category changed from Calendar to Ruby support
  • Status changed from New to Resolved
  • Target version set to 1.3.1

I was able to reproduce. This should be fixed in r8210.

Actions #6

Updated by Leon Guan almost 13 years ago

I am having the same issue in WIKI pages, if the wiki link is constructed by UTF-8 characters, such as Chinese, the linked wiki page will result in error 500, and check the error log it has the incompatible issue on translation. For those pages with links in LATIN, they worked fine, even the contents are with UTF chars.

Actions #7

Updated by Jean-Philippe Lang almost 13 years ago

  • Status changed from Resolved to Closed
  • Resolution set to Fixed

Merged.

Leon, please open a separate issue if your problem still persists.

Actions

Also available in: Atom PDF