I've got a website in which you enter your details to post ads.
You firstly enter your details into text boxes on an .html page (name, surname, email etc)
You then review these details on a .php page and if you happy with the details the next php page submits everything to the DB.
The problem I have is this: if Polish letters are used in the text field on the html page, they don't show up at all but as "Auml�Auml�Aring�Aring�Atildesup3" on the review php page.
All files (html, php and D are set to utf-8 and the review php doesn't have problems displaying Polish characters in the descriptions of the text field data, but the actual data itself has the problems. (I hope I'm making it clear - apologies if not) i.e.
Imię (name): Auml�Auml�Aring�Aring�Atildesup3
An example of the code (if it helps) on the review php page is:
$string1 = isset($_POST['firstname']) ? htmlentities($_POST['firstname']) : false;
if(empty($string1))
{
echo("<h2>Imię:<font color=red>Prozsę wypełnić</font></h2>\n");
$showbutton=1;
}
else
{
$firstname = ereg_replace("[^0-9a-zA-Z?ąćęłń贸śżźĄĆĘŁŃ脫ŚŻŹ ]", "", $string1);
echo("<h2><span class=profile>Imię:</span> <font color=#04B404>" . $firstname . "</font></h2>\n");
echo("<input type=hidden name=firstname value=" . $firstname . ">");
}
Many thanks in advance if anyone can help me out with this