WP Links from Facebook and Google Ads shows invalid characters
Your problem might be caused by WP Rocket. Turn it off to confirm it, and then you could try out this: https://docs.wp-rocket.me/article/64-fix-utf-8-issue-with-special-characters
Your problem might be caused by WP Rocket. Turn it off to confirm it, and then you could try out this: https://docs.wp-rocket.me/article/64-fix-utf-8-issue-with-special-characters
It makes sense to look at the PHP function rawurldecode, which decodes URL-encoded strings. https://www.php.net/manual/en/function.rawurldecode.php For example, echo rawurldecode(get_permalink($post->ID)); will show the decoded post URL. But this isn’t really needed in hyperlink code. Sorry I didn’t just write a comment, I don’t have enough points for that option.
Problem some Persian texts show in ISO-8859-5
This does not happen out of the box in WordPress. I would recommend going through your plugins one by one and deactivate them to see which plugin is causing this. After that if it still persists, try switching to one of the themes that comes with stock WordPress. If the issue goes away there then … Read more
I solved the problem. The permalink slug under the title of a new post would not let me tweak the slug for some reason. I was able to get rid of the unwanted ‘-‘ in the permalink by heading to the posts list and clicking quick edit to edit the slug over there.
Check the source code of the admin page, and search for meta charset. You page should contain a <meta charset=”utf-8″ /> tag to instruct the browser the characters on your page are encoded in Unicode (UTF-8). This character encoding supports all characters, and is also recommended encoded for your pages for indexing in Google. If … Read more
If you search WordPress core for < or > you will find the function _wp_specialchars in /wp-includes/formatting.php Then if you search for _wp_specialchars you will see it is used in esc_js (as well as esc_html and esc_attr) so do not use esc_js, escaping is mostly for output anyway. Further search results show that in /wp-includes/default-filters.php … Read more
You can hook into WordPress’ slug algorithm and create your own slugs. For an example look into my plugin Germanix URL. I’m not sure if WordPress can accept requests with an + without further tweaking tough. If just want to allow the slug without much coding, install Germanix and create a second plugin with this … Read more
Have a look at the PHP function urlencode(), that will hopefully help. Also, in the latest update of WordPress (3.3.1) they have fixed it so that permalinks (post slugs) no longer contain special characters. This of course doesn’t help with your already existing slugs, but I’m sure there are ways and means of cleaning that … Read more
Well, thanks to a suggestion from one of my mates I resolved the more critical problem (2) of the Hebrew text displaying in gibberish. All I needed to do was to re-encode the files as UTF-8 without BOM (they were encoded as UTF-8 (plain)). I re-uploaded these files to the server and Voila, everything was … Read more