Josh (the blog)

I’ve delivered simple, clear and easy-to-use services for 20 years, for startups, scaleups and government. I write about the nerdy bits here.


@joahua

CurlyEnc 0.1

This is a simple WordPress plugin that allows you to copy and paste from word-processing software that automagically does smart quotes conversion (curly quotes). You can do this without using this plugin – but the characters aren’t proper HTML entities and it’s dirty. CurlyEnc converts curly quote characters to their proper HTML entity codes – something WordPress does perfectly fine with normal quotation marks, but not with these ones.

Simply upload CurlyEnc into your plugins directory and enable it from the Plugins section of your WordPress administration panel, and it should* work.

  • No guarantees, no promises. If your weblog sprouts furry ears and starts chasing your mouse, so to speak, I accept no responsibility. Yada yada. Happy to try and help. More seriously, I don’t know that much about character encoding, so I wouldn’t be entirely surprised if my magical character is something of a dud on some installations. I know it’s a good concept, and this is my best implementation of it – if anyone else has a better idea as to how it should be done, please share!

On a related note, it’s released under the GNU GPL — you can have that five lines of code for free! Sorry, no steak knives.

View the PHP source, or download a plain text version.