in reply to A problem with dash typography
Hm, the correct numerical entity code for the em-dash is — ... otherwise —
It works for me with the correct character encoding in and out:
Hope this helps![12:04][nick:~/monks]$ perl -Mstrict -Mutf8 -MHTML::Entities -E ' binmode STDOUT,":utf8"; > say encode_entities("Chimney—sweeper"); > say encode_entities("Chimney–sweeper"); > say decode_entities("Chimney—sweeper"); > say decode_entities("Chimney–sweeper"); > ' Chimney—sweeper Chimney–sweeper Chimney—sweeper Chimney–sweeper
Edit: Decoded characters may not display properly here ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: A problem with dash typography
by hsmyers (Canon) on Sep 09, 2015 at 15:03 UTC | |
by 1nickt (Canon) on Sep 09, 2015 at 16:03 UTC | |
by hsmyers (Canon) on Sep 10, 2015 at 16:54 UTC |