Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

A user creates a post with the following url:

http://mysite.com/entry/we’re-here/

However, my text editor converts it to this automatically (I'm using the url somewhere else in a cut and paste):

http://mysite.com/entry/we're-here/

And this url fails. It's because of the different apostrophe in we're

I think the first one is from MS Word (maybe?) and that is what the user is working from when entering text.

My question is, should there be a way to automatically convert such entities so they are not potentially misinterpreted? Or should I just tell my text editor to not convert stuff? It seems like relying on the specific entity that that apostrophe is for a working URL is just asking for trouble at some point. Is this not UTF-8? Ugh... always getting confused about entities.

share|improve this question

closed as too localized by toscho Dec 18 '12 at 23:55

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.