UTF8 charset, diacritical elements, conversion problems - and Zend Framework form escaping

Posted by imanc on Stack Overflow See other posts from Stack Overflow or by imanc
Published on 2010-05-03T10:45:43Z Indexed on 2010/05/03 10:48 UTC
Read the original article Hit count: 311

Hey,

I am writing a webapp in ZF and am having serious issues with UTF8. It's using multi lingual content through Zend Form and it seems that ZF heavily escapes all of these characters and basically just won't show a field if there's diacritical elements 'é' and if I use the HTML entity equivalent e.g. é it gets escaped so that the user will see 'é'.

Zend Form allows for having non escaped data, but trying to use this is confusing, and it seems it'd need to be used all over the place.

So, I have been told that if the page and the text is in UTF8, no conversion to htmlentities is required. Is this true?

And if the last question is true, then how do I convert the source text to UTF8? I am comfortable setting up apache so that it sends a default UTF8 charset heading, and also adding the charset meta tag to the html, but doing this I am still getting messed up encoding. I have also tried opening the translation csv file in TextWrangler on OSX as UTF8, but it has done nothing.

Thanks!

L

© Stack Overflow or respective owner

Related posts about utf8

Related posts about charset