somehow contents posted from.. say a word document or another website turns into weird symbols for me. I have traced it down to the storing part which fails. But I'm not sure how...
symbols of quotes turns out like:
my input script
PHP Code:
function format_input($input, $html_entities=1) { //Escape Codes $input = mysql_real_escape_string($input); //Trim $input = trim($input); //If Html Entities if ($html_entities==1) $input = htmlentities($input); return $input; }
mind you that if you type the quotes directly in the textarea it turns out ok.
I think somehow there's two quotes: ” vs "
any experiences with this?
|