Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 3.2.16

Bug #496 setDefaults with callback processes special characters wrongly
Submitted: 2003-12-26 01:43 UTC
From: aidan at virtualexplorer dot com dot au Assigned:
Status: Bogus Package: HTML_QuickForm
PHP Version: Irrelevant OS: n/a
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 16 + 21 = ?

 
 [2003-12-26 01:43 UTC] aidan at virtualexplorer dot com dot au
Description: ------------ HTML_QuickForm::setDefaults with a htmlentities callback function will result in special characters being converted twice! For example: $form->setDefaults($result[0], 'htmlentities'); Letters such as special n (n with a tilde), or any other international characters are first converted using the callback function to their ascii names, ñ, and when outputted, again converted to &ñ If the data is called without using a callback function, the letters are not converted at all, and causes problems in displaying the form.

Comments

 [2003-12-26 08:57 UTC] avb
This is not a bug. To prevent problems with national letters configure your webserver to return the right charset.