htmlentities, $_POST and Special char

Forum for you who has PHP installation issues

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 23
Joined: Thu Apr 22, 2004 7:00 am

Thu Oct 05, 2006 5:47 am

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.

Post Reply