accents ?
I'm trying to use the QuestyCaptcha on a french wiki and i have small problems with accentuated caracters. I solved the first one enclosing questions in htmlentities() php function. But it doesn't seems to work for the answers. Ok, i could find others questions wich answers dont contain accents, but i like the ones ive already set up. Any advises appreciated. TulipVorlax 08:15, 21 December 2011 (UTC)
You shouldn't be using htmlentities in the question, as then your users would need to answer eg. école instead of école. What you need to do is to save the questions in UTF-8 (you were probably using windows-1252).
Are you meaning saving "LocalSettings.php" in UTF8 ? Because i dont know (yet) if Dreamweaver CS4 has a way of specifying encoding of PHP files, but maybe doing an edit with Notepad2 could help. TulipVorlax 22:48, 21 December 2011 (UTC)
Ok ! After a bit of thinking i decided to look for a php function and found the right one : utf8_encode().
Using it on answers that contain accents make an anon able to type and submit it (able to edit).
Thanks for the help. TulipVorlax 00:06, 22 December 2011 (UTC)
It does seem to support it [1]
Note that you would want UTF-8 with no BOM.
Even in a previous version of Dreamweaver i had that option set to UTF8. I dont know why it didn't work in this perticular case, but using the PHP function solved it.
Then, i discovered another bug... (See above.) Edit: Ok, i'll be updating the extension because it say on this page it has been fixed (the help page bug).