Featured post
forms - PHP accented characters in POST submit -
i have html form on submit.php, page encoded utf-8 (using meta tag), when form submitted process.php (via post), of variables stored in session, , page uses header: location go submit.php, uses session variables redisplay of entered information.
if enter accented character, example é (é), when page returns submit.php, not render character correctly, ã (ã) , © (©) instead.
where should looking solve problem? i'm assuming it's server side, rendered page utf-8 (the browser confirms page utf-8 before , after submitting)
solution:
the string being passed through htmlentities() @ 1 point, turns out has default character encoding of iso-8859-1 answer specify 'utf-8' in function call.
é
being turned ~©
sure-fire sign 2-byte utf-8 character @ point gets interpreted in 1-byte character set (most iso-8859-1).
you need find happens, , fix it.
maybe show code - maybe has idea.
- Get link
- X
- Other Apps
Comments
Post a Comment