Skip to main content
Em dash is changed into two hyphens (?) Started by Frenzie · · Read 1875 times 0 Members and 1 Guest are viewing this topic. previous topic - next topic

Em dash is changed into two hyphens (?)

Em dash: —
En dash: –
Regular dash/hyphen: -

In order: —–-. All three should be different in the output, not just in the edit dialog. This is UTF-8, after all.

Re: Em dash is changed into two hyphens (?)

Reply #1

Okay, so apparently this must be triggered even though I'm nowhere near anything Microsoft atm. I'm entering proper Unicode using the compose key, in Firefox 45 on Debian/unstable. And in any case, the MS characters should be replaced with their Unicode equivalents or HTML entity equivalents (like in the trailing comments), not with what it's actually replaced with.

Edit: Okay, update. These are simply the real UTF-8 encodings. See e.g. http://unicode-table.com/en/2014/ There's nothing "MS" about them.

I propose to remove the sanitizeMSCutPaste() function as harmful garbage.  8) Its only use seems to be in a non-UTF8 context.
Last Edit: April 04, 2016, 06:53:51 am by Frenzie

Re: Em dash is changed into two hyphens (?)

Reply #2

Moving to exterminated as duplicate of: http://www.elkarte.net/community/index.php?topic=3272.0

Just to avoid spreading. ;)
Bugs creator.
Features destroyer.
Template killer.

Re: Em dash is changed into two hyphens (?)

Reply #3

D'oh.