Forum: Ruby on Rails Sanitizing Characters In Pasted Text

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
sross (Guest)
on 2005-11-29 05:29
(Received via mailing list)
Because Microsoft Word changes quotes to curly quotes, double dashes to
en-dashes, etc., copied / pasted text from Word into a textarea can
characters not rendered the same in all browsers. Put more bluntly, when
they paste from Word, it looks like cr@p on my Mac.

I¹ve seen this question asked before, but never seen the answer. Is
any translation table between Word¹s special characters and HTML named

david.felstead (Guest)
on 2005-11-29 08:27
(Received via mailing list)
Hi Steve,

There's a Perl script called "demoronizer" that does something like
this - perhaps you could use it as a reference:


This topic is locked and can not be replied to.