php - American apostrophe clears form input -


kind of apostrophe ruins input saved database. i've tried

$generalchangedescriptions[$championnumber+1][$indexgeneral+1]=str_replace("’", "'",    $generalchangedescriptions[$championnumber+1][$indexgeneral+1]); 

so changing ' no results still empty field. value apostrophe shown fine after sending with

 <input type="hidden" name="generalchangedescriptions" value="'.htmlspecialchars(json_encode($generalchangedescriptions)).'"> 

it no longer visible whole input blank there way fix this?

update:

after fiddling bit code found out json_encode wipes input after sending there easy solutions?


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -