Page MenuHomePhabricator

"Show/hide" button of section is broken in non-Alphabetical language
Closed, ResolvedPublic

Description

Author: aokomoriuta

Description:
example: http://ja.m.wikipedia.org/wiki/PHP:_Hypertext_Preprocessor

Show/hide button's label text should be shown same text as [[MediaWiki:Mobile-frontend-show-button/ja]]("表示") and [[MediaWiki:Mobile-frontend-hide-button/ja]]("非表示"), but now broken text "é��表示".
I confirmed such broken text in Japanese, Chinese, and Arabic.

This bug may be caused by r113028?


Version: .5
Severity: critical

Details

Reference
bz35081

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:20 AM
bzimport set Reference to bz35081.
bzimport added a subscriber: Unknown Object (MLST).

Example:

Japanese characters
"表示"

URL Encode (UTF-8)
%e8%a1%a8%e7%a4%ba

Character entity references in HTML
Unicode code point → Name
U+00e8 → egrave
U+00a1 → iexcl
U+00a8 → uml
U+00e7 → ccedil
U+00a4 → curren
U+00ba → ordm

may be caused by r113444.

In 113444's comments:

"Why are you using htmlentities instead of htmlspecialchars?"
  • This bug has been marked as a duplicate of bug 35086 ***