Nicolas Bouliane
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Weird UTF-8 characters appearing in editor. Database is fine.CLOSED:
The issue was caused by my theme, and thus, must not be attributed to WordPress. Thank you for your time.
Forum: Fixing WordPress
In reply to: Weird UTF-8 characters appearing in editor. Database is fine.Update: Disabling the visual editor fixes it, although it’s not an optimal solution. I really need a fix.
I am not very familiar with javascript in WordPress, but you could always create a javascript.php file that contains it (changing the headers to match the content type). This way it wouldn’t produce validation errors with the XHTML doctype. Otherwise, you should at least wrap them in CDATA tags (see previous link) so they work properly with XHTML, since it’s the official WordPress doctype.
You should also avoid displaying javascript on pages where there are no forms if possible.
These links might help:
http://inchoo.net/wordpress/creating-wordpress-plug-in-that-shows-locations-of-current-users-based-on-xml-data-using-dynamically-created-javascript-in-header-of-the-page-and-google-api/I started messing with the source code and I see you are using quite a few outdated or dangerous methods. I’m removing this plugin.