R
R
roman_lyce2014-10-02 14:12:55
Zend Framework
roman_lyce, 2014-10-02 14:12:55

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

3 answer(s)
S
Shirshov Alexander, 2014-10-22
@Keanor

What is the page encoding? Zend\Form\View\Helper\AbstractHelper - escaping happens here in the createAttributesString() method

S
SkU4, 2014-12-04
@SkU4

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 ...

A
alf85, 2015-09-02
@alf85

I join the question.
Has no one decided?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question