Board index   FAQ   Search  
Register  Login
Board index PHP PHP Installation

htmlentities, $_POST and Special char

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

htmlentities, $_POST and Special char

Postby sergio_mi » Thu Oct 05, 2006 5:47 am

Hi,
I use htmlentities to convert special characters.
if I write

echo htmlentities('ò'); what i get is ò

but if the character cames from a form <textarea name='myText'>ò</textarea>

echo htmlentities($_POST['myText']); returns &Atilde;&sup2; // with get and request i have the same problem and obviously with any other special character

it's php 4.3.9 on apache 2.0

I hope that php installation is the right forum for this problem.

thank you.
sergio_mi
New php-forum User
New php-forum User
 
Posts: 23
Joined: Thu Apr 22, 2004 7:00 am

Return to PHP Installation

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron