Ok, so after further testing, it turns out that if I change the coding of the string from UTF-8 to ISO-8859..., it encode to the proper entities.
I obviously can adjust the script to pre convert UTF-8 to ISO-8859 but it should be at least documented (but I dont see any reason why encode_entities should actually not be able to deal with UTF-8) Regards -- http://yeupou.wordpress.com/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org