Hi prado,

Which encoding are you using for your project ?
You may force encoding in firefox (display > encoding) to be sure of it.
Then you can use this in your .htaccess file (replace UTF-8 by whatever encoding you use) :

AddDefaultCharset UTF-8

Baptiste.

prado a écrit :
 My message below might sound confusing where it says  "to é"  and
"into to é" on the last line, bcos the forum is encoding, it should
say something like ampersand-eacute-; i hope you got that right. cheers


prado wrote:
  
My guess was maybe the escape function is causing those characters to
display incorrectly, then i tried without the escape, still � appears for
characters like é but this time it didn't happen for ', then i changed é
to é in the data, it displayed correctly. Now this is all without
the escape.

now i know having escape is all about XSS, seems i might need to create my
own helper for this. Any ideas how should i approach with this? what kind
of helper should i create?

Is it possible to display é as é instead of encoding into é ?



jasonistaken wrote:
    
Yes, but did you try:

<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />


??
On 04/02/2009 2:31 PM, prado wrote:
      
Thanks, i should have mentioned this before, i did try

<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />

didn't work.

What is surprising that these characters work fine with normal PHP
scripting, procedural or OOPs style.

This problem only propped up when i started using Zend framework, now i
am
using escape method before i display the data, is there any other method
that i may use for parsing these characters correctly?
        

      
    

  

--

 
baptiste placé
  06.21.80.24.58
  bplace.utopiaweb
  [email protected]
 
utopiaweb
  09.500.350.30
  09.550.350.30
  www.utopiaweb.fr

Reply via email to