プロジェクト

全般

プロフィール

Vote #71062

完了

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

Admin Redmine さんが4年以上前に追加. 4年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Ruby support_33
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
33
version_id:
41
issue_org_id:
9792
author_id:
46149
assigned_to_id:
0
comments:
7
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

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: 
11: 
12: 

13: <%= link_to_previous_month(@year, @month) %> | <%= link_to_next_month(@year, @month) %> 14:

15: 16:

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 :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' :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 `

' Rendering /srv/www/applications/redmine/public/500.html (500 Internal Server Error)

journals

Which version of Ruby (see [[SubmittingBugs]])?
--------------------------------------------------------------------------------
Sorry, my fault.

<pre>
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
</pre>
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
I was able to reproduce. This should be fixed in r8210.
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
Merged.

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

Admin Redmine さんが4年以上前に更新

  • カテゴリRuby support_33 にセット
  • 対象バージョン1.3.1_41 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0