Answer the question
In order to leave comments, you need to log in
For whom does ZF2 work incorrectly with the Russian language?
ZF2.3.3. Doctrine gets the correct data from the database, but in the view of the form the line "echo $this->formRow($form->get('mark'));" gives inputs in the value field instead of Russian - Korean characters. The encodings of the base, tables and strings are all utf8, in the $form object everything is also in Russian.
Also when forming the form
$this->add(array(
'name' => 'submit',
'type' => 'Submit',
'attributes' => array(
'class' => 'btn btn-success',
'value' => 'Add',
'id' => 'submitbutton',
),
));
value will be hieroglyphs. It looks like some kind of handler, like htmlentities().
Where to dig, Moscow has already broken ..
Answer the question
In order to leave comments, you need to log in
What is the page encoding? Zend\Form\View\Helper\AbstractHelper - escaping happens here in the createAttributesString() method
zf2 automatically applies escaping in the form to all attributes
with Cyrillic in general, the trouble turns out, you can’t even spell the placeholder properly, I
join the question ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question