Defect #26599

Corrupted file name when exporting a wiki page with Non-ASCII title using Microsoft's browsers

Added by Go MAEDA 16 days ago. Updated 15 days ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Wiki
Target version:3.3.5
Resolution: Affected version:3.3.4

Description

Steps to reproduce:

1. Create a wiki page with Non-ASCII title (e.g. "日本語").
2. Open the wiki page using Microsoft Edge or Internet Explorer.
3. Click "TXT" in "Also available in" area.
4. The page will be exported but its file name is corrupted.

screenshot

currepted-filename.png - screenshot (15.9 KB) Go MAEDA, 2017-08-01 12:52

0001-Fix-file-name-corruption-when-export-a-wiki-page-wit.patch Magnifier (1.56 KB) Go MAEDA, 2017-08-01 14:03

0002-Add-a-test-for-file-name-corruption-when-export-a-wi.patch Magnifier (1.72 KB) Go MAEDA, 2017-08-01 14:03

History

#1 Updated by Go MAEDA 16 days ago

  • Target version set to 3.3.5

#3 Updated by Toshi MARUYAMA 15 days ago

If you write non ascii characters in source, you need to encode "\xnn" or add "# encoding: utf-8" header for Ruby version compatibility.

source:tags/3.3.4/test/unit/lib/redmine/i18n_test.rb#L192
source:tags/3.3.4/test/unit/helpers/application_helper_test.rb#L1

Also available in: Atom PDF