Special Characters problem
-
When I edit a post in WordPress using the ‘Text’ mode and enter special characters via using & and euro; for instance for the Euro sign, things work fine. I publish the post and the characters appear ok on my site.
If however I try to go back and edit the page, in the text-mode all special characters are displayed as they are and the encoding is gone (so & euro; is displayed as €).
Here’s the strange thing. If I edit a post, go into text-edit mode rather than visual edit and enter a character code and THEN switch to visual mode WITHOUT saving or publishing and THEN switch back to the text edit mode tab, all my character codes are gone and in text edit mode IMMEDIATELY. So & euro; becomes € in text edit mode straight away. This happens both in Chrome and Safari browsers.
On my server I have several WordPress sites with various WP versions, this happens to WP version 4.4 as well as older versions. My PHP version is 5.5.30.
I checked the following without success:
– changed the WP-config file UTF-8 settings and DB collate lines. Deleted them, defined UTF-8 specifically etc. Didn’t work.
– checked MySql in phpMyAdmin. Server connection collation is UTF8_general_ci. Tried utf8mb4_general_ci as well. No success
– some WP site are UTF8_general, some are UTF8mb4, both have same problem.
– I switched off visual editor in my user account settings. Problem remains: I enter the characters in text-mode and save just fine. After I go back and reload the page in the editor, all my codes are replaced with the characters. Saving then causes all characters to replaced by a ? or just disappear.my pages are being served with the following header:
meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″
What else can I check? Can it be a Mac related browser issue as it happens straight away when switching from text to visual mode without saving or updating?
Is it some other setting in my PHP server? (which is set as UTF8 by the way)….
- The topic ‘Special Characters problem’ is closed to new replies.