Home » HTML » HTML_QuickForm » Bug #5129
ISO-8851-1 OR UNICODE characters into value.attribute for input.element++submit
Details
| Request #5129 | ISO-8851-1 OR UNICODE characters into value.attribute for input.element++submit |
|---|---|
| Submitted | 2005-08-18 01:29 UTC |
| From | webmaster at personadigital dot com |
| Status | Bogus |
| Package | HTML_QuickForm |
| PHP Version | 4.4.1 |
| OS | win2k |
| Roadmaps | (Not assigned) |
Comments
[2005-08-18 01:29 UTC] webmaster at personadigital dot com
Description:
------------
we speak spanish
can the addElement method for submit.element.type display accent letters like iso-8859-1 or Unicode or characters entities references? e.g. í
In [test script] box below, HTML_QuickForm_vEG is our class extension with spanish text values for constants defined in the original HTML_QuickForm.
In [expected and actual result] box below, I'm using entities reference because iso-8859-1 is hard to see. Please read í like [latin small letter i with acute, U+00ED ISOlat1]
If we use
<pre style="background-color: #DCDCED">
$form->addElement( 'text', 'envie', 'eníe');
</pre>
with í in ISO-8859-1, thats all ok: display iso-8859-1 character.
can do you help me?
eltonSubmit
Test script:
---------------
$form = new HTML_QuickForm_vEG( 'quickForm1', 'POST');
$form->addElement( 'text', 'firstName', 'Ingrese su nombre');
$form->applyFilter( 'firstName', 'trim');
$form->addRule( 'firstName', 'Por favor ingrese su nombre', 'required', FALSE, 'client');
$form->addElement( 'submit', 'submit', 'envíe');
Expected result:
----------------
<input name="submit" value="envie" type="submít" />
Actual result:
--------------
<input name="submit" value="envie" type="subm?t" />
[2005-08-18 01:36 UTC] webmaster at personadigital dot com
Expected result:
----------------
<input name="submit" value="envíe"
type="submit" />
Actual result:
--------------
<input name="submit" value="env?e"
type="submit" />