[fw-general] charset little problem
Hi friends, When I try: * print $this-_request-getParam('query');* The browser prints: *programação* The correct need to be: *programação* And when I try: *print programação;* It prints correctly! What it would be?
Re: [fw-general] charset little problem
On Tue, Sep 23, 2008 at 12:46 PM, José de Menezes Soares Neto [EMAIL PROTECTED] wrote: Hi friends, When I try: print $this-_request-getParam('query'); The browser prints: programação The correct need to be: programação And when I try: print programação; It prints correctly! What it would be? This should be encoding related. Make sure you send the correct encoding in Content-Type and also in the browser (meta tag, etc.). Till
Re: [fw-general] charset little problem
the problem is inside getParam. Because when i print the char inside the html, or inside the php, it shows fine any ideas? 2008/9/23 till [EMAIL PROTECTED] On Tue, Sep 23, 2008 at 12:46 PM, José de Menezes Soares Neto [EMAIL PROTECTED] wrote: Hi friends, When I try: print $this-_request-getParam('query'); The browser prints: programação The correct need to be: programação And when I try: print programação; It prints correctly! What it would be? This should be encoding related. Make sure you send the correct encoding in Content-Type and also in the browser (meta tag, etc.). Till
Re: [fw-general] charset little problem
i am using utf8_encode(); for this problem. thanks everybody! 2008/9/23 José de Menezes Soares Neto [EMAIL PROTECTED] the problem is inside getParam. Because when i print the char inside the html, or inside the php, it shows fine any ideas? 2008/9/23 till [EMAIL PROTECTED] On Tue, Sep 23, 2008 at 12:46 PM, José de Menezes Soares Neto [EMAIL PROTECTED] wrote: Hi friends, When I try: print $this-_request-getParam('query'); The browser prints: programação The correct need to be: programação And when I try: print programação; It prints correctly! What it would be? This should be encoding related. Make sure you send the correct encoding in Content-Type and also in the browser (meta tag, etc.). Till