[pmwiki-users] convert characters to HTML entities when pasting from Word

john.rankin at affinity.co.nz john.rankin at affinity.co.nz
Fri Jun 27 17:34:11 CDT 2008

> On Fri, Jun 27, 2008 at 4:48 AM, John Rankin <john.rankin at affinity.co.nz>
> wrote:
>> When you copy and paste content from Microsoft Word into
>> a wiki edit form, non-standard ascii characters such as
>> curly quotes, em and en dashes, and ellipsis come across
>> as themselves, rather than as the correct HTML entities.
>> Has anyone created a set of ROSPatterns to turn such
>> characters into their corresponding entities?
> You've probably already looked at these, but just for reference for an
> alternate approach:
> http://www.pmwiki.org/wiki/Cookbook/WordPaste (there's a macro partway
> down)
> http://www.pmwiki.org/wiki/Cookbook/Word2PmWiki
> -Peter
Yes and as far as I can see, these don't deal with the non-standard
characters like curly quotes. See for example this rant:


More information about the pmwiki-users mailing list