Page MenuHomePhabricator

Flow: Some special characters are being mis-encoded, eg ndash
Closed, ResolvedPublic

Description

Reported at http://ee-flow.wmflabs.org/w/index.php?title=Talk:Flow_bugs&workflow=050acb70dc27f00fc8b1fa163e68c4ac&action=view but I cannot replicate.

The user is copying the content at page-top ("Flow bugs – Flow"), and pasting it into the edit box.
Then pressing "Preview" where it displays correctly.
Upon saving, the ndash appears as: –

Possibly this is a Windows7 problem? Or Parsoid?


Version: unspecified
Severity: normal

Details

Reference
bz57945

Event Timeline

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

bingle-admin wrote:

The WMF core features team tracks this bug on Mingle card https://mingle.corp.wikimedia.org/projects/flow/cards/572, but people from the community are welcome to contribute here and in Gerrit.

Aha! Replicatable. It only happens when the text is wikilinked. (Thanks to Fram for clarifying my overlooked variable)

[[test – test]] previews fine, but when saved it transforms into a redlinked [[test – test]]

Change 103569 had a related patch set uploaded by EBernhardson:
Special characters are being mis-encoded in links

https://gerrit.wikimedia.org/r/103569

Interesting variations at https://www.mediawiki.org/w/index.php?title=Talk:Sandbox&workflow=050c553390ab9384b03a842b2b77e406#flow-post-050c878e4ad055356901842b2b77d2bd

When Ryūkotsusei previewed their own post, they saw "RyÅ«kotsusei", but once the post was saved, the name appeared correctly. (See https://www.mediawiki.org/w/index.php?title=Talk:Sandbox&topic[newRevision]=050c87914c196f3747a890b11c28d448&topic[oldRevision]=050c878e4ad055356901842b2b77d2bd&workflow=050c553390ab9384b03a842b2b77e406&action=compare-revisions

I had the opposite problem: The bluelinked @name displayed correctly, but when I saved the post, the mis-encoding is what came out.

Change 103569 merged by jenkins-bot:
Special characters are being mis-encoded in links

https://gerrit.wikimedia.org/r/103569