[Help] Displaying foreign language characters
Posted: Fri Feb 03, 2006 5:15 am
Hi,
I had a problem displaying single and double quotes, and fixed the problem with addslashes and stripslashes.
Now I am stuck with another problem, which displays something like as follows for a foreign language character:
& # 243
How can I make foreign language characters appear correctly?
Your help would be greatly appreciated.
BTW, please kindly refer to the following steps I followed:
I stored data with addslashes and retrieved and displayed with stripslashes as follows:
$toshow = stripslashes($RetrievedFromTable);
echo $toshow; // displays the character correctly
$myemail = "test@test.com";
mail($myemail, $toshow, $toshow, "From: $myemail"); // shows funny characters like (& # 243) on the subject line and in the body of the email as well.
I have no idea why it shows correctly on "echo" but fails on email.
Many thanks in advance.
I had a problem displaying single and double quotes, and fixed the problem with addslashes and stripslashes.
Now I am stuck with another problem, which displays something like as follows for a foreign language character:
& # 243
How can I make foreign language characters appear correctly?
Your help would be greatly appreciated.
BTW, please kindly refer to the following steps I followed:
I stored data with addslashes and retrieved and displayed with stripslashes as follows:
$toshow = stripslashes($RetrievedFromTable);
echo $toshow; // displays the character correctly
$myemail = "test@test.com";
mail($myemail, $toshow, $toshow, "From: $myemail"); // shows funny characters like (& # 243) on the subject line and in the body of the email as well.
I have no idea why it shows correctly on "echo" but fails on email.
Many thanks in advance.