[PEAR-BUG] Bug #20489 [Opn]: Textareas with umlauts or other special chars are rendered empty

[email protected] Mon, 19 Jan 2015 21:53:38 +0000 (GMT)
Newsgroups php.pear.bugs
Message-ID <[email protected]>
Edit report at https://pear.php.net/bugs/bug.php?id=20489&edit=1

 ID:               20489
 Updated by:       [email protected]
 Reported By:      frank dot brockmann at hs-bochum dot de
 Summary:          Textareas with umlauts or other special chars are
                    rendered empty
 Status:           Open
 Type:             Bug
 Package:          HTML_QuickForm
 Operating System: Kubuntu 14.04.1
 Package Version:  3.2.14
-PHP Version:      Irrelevant
+PHP Version:      >=5.4
 Roadmap Versions: 
 New Comment:

-PHP Version: Irrelevant
+PHP Version: &gt;=5.4



Previous Comments:
------------------------------------------------------------------------

[2015-01-19 17:41:33] fhbo_fbw

Description:
------------
When creating text areas, default values containing umlauts or other
special chars force them to be rendered completely empty. 

Test script:
---------------
<?php
  require_once "HTML/QuickForm.php";

  $form = new HTML_QuickForm('register', 'post'); 
  $form->addElement('text', 't1', 'Text'); 
  $form->addElement('textarea','ta','Text area');
  $form->addElement('submit','sb','Submit form');

  $form->setDefaults(array("t1"=>"äöüß", "ta"=>"äöüß"));
  $form->display();
?>

Expected result:
----------------
text inputs and text area inputs showing äöüß as initial value

Actual result:
--------------
only text inputs showing äöüß as initial value

------------------------------------------------------------------------


-- 
Edit this bug report at https://pear.php.net/bugs/bug.php?id=20489&edit=1