Jump to content
LaurenWilson

Bad Permalinks adding characters

Recommended Posts

Can anybody help me on this issue? It's very important to my site.

Some (although not all) of my permalinks won't work. Some work perfectly and some are having variants of this "%20%E2%80%8E" added to the end of them, which obviously is giving me the 404 message.

I've tried deactivating plug ins but had no difference and obviously as some work, it is unlikely to be that. I have also checked for hidden characters but cannot seem to find any.

Can anybody think of a viable reason/solution for this error?

Thanks

Share this post


Link to post
Share on other sites

Those only appear when you urlencode() characters that aren't meant to be in a URL, like spaces, international characters or symbols. I think some browsers automatically encode URLs that contain incorrect characters.

Share this post


Link to post
Share on other sites

I just cannot for the life in me find where anything is in wrong. I have copied the URL's from the permalink on the edit page, then into notepad where there was nothing untoward and into the slide link URL. I have tried it on 3 browsers (Safari,Firefox and Chrome). What can you suggest?

Share this post


Link to post
Share on other sites

What code is generating the permalink?

Share this post


Link to post
Share on other sites

That sequence corresponds to " „", which is a 3-byte UTF-8 character being shown as individual bytes. It sounds like the code might not be handling UTF-8 characters correctly. I think the character it is trying to display is „ which might have been pasted in from Word or something like that. You can either find the problem in the code and fix that, or replace those characters with regular ASCII characters.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...