hi all,before i get into the core of my problem, i'd like to point out that switching to UTF-8 is not a solution for my problem, taken that i merely add a roof to a card-house ...
the server i work on (some intraweb behind a vpn) sends resposne headers set to iso-8859-1, as is the <meta> tag.
i build a Zend_Form and need the validation messages to be translated.i wrote an xml file with the error messages [1]. i tried both, an iso-8859-1 and utf-8 version of the xml file.
i then attach the translation to the form and render it. cf. [2] i seem to have a problem with encoding though. does this ring a bell to anyone? greetings ... pierre == links [1] http://wiki.caillou.ch/_media/code:validatorsstrings.g.xml [2] http://paste2.org/p/37728 for syntax highlighted == code $this->form->setAction('.') ->setMethod('post') ->setAttrib('enctype', 'multipart/form-data'); # set the translator $translator = new Zend_Translate( 'Zend_Translate_Adapter_Tmx', $translation_file, 'de' ); $this->form->setTranslator($translator); # add some elements # [...] if ($_POST) { $form->isValid($_POST); } $view = new Zend_View(); $view->setEncoding('ISO-8859-1'); echo $form->render($view); -- Liip AG // Rte de la Fonderie 7 // CH-1700 Fribourg Fon 026 4222511 // Key id 0x5BF5F8FA // www.liip.ch
PGP.sig
Description: This is a digitally signed message part
