Project

General

Profile

Actions

Defect #12667

closed

500 error when viewing issue that contains 2-byte character

Added by Erik Mitchell almost 12 years ago. Updated almost 12 years ago.

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

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Fixed by adding "# encoding: utf-8" to app/controllers/issues_controller.rb

0a1,2

  1. encoding: utf-8 #
Actions #1

Updated by Erik Mitchell almost 12 years ago

Diff should be:

0a1,2
> # encoding: utf-8
> #
Actions #2

Updated by Toshi MARUYAMA almost 12 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

Redmine 2.x internal encoding is utf-8.
source:tags/2.2.0/config/application.rb#L40

I can see non ASCII issue on Redmine.org.
An example is #12645.

Actions #3

Updated by Erik Mitchell almost 12 years ago

Is it perhaps working on redmine.org because a different database adapter is being used?

I am using "mysql". Searching the internet suggested that changing to "mysql2" might resolve the problem, however I was not able to get this to work in my environment. Changing the controller script did fix the issue, though.

Actions

Also available in: Atom PDF