2levelsabove Posted September 27, 2008 Share Posted September 27, 2008 Hello, When my users input information in forms. Special characters get transformed. For example "and you don't have to do any" transforms to "and you don’t have to do any" how do i get the original text back ? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/126033-weird-values-in-database/ Share on other sites More sharing options...
ratcateme Posted September 27, 2008 Share Posted September 27, 2008 $input = str_replace("’","'",$input); should work Scott. Quote Link to comment https://forums.phpfreaks.com/topic/126033-weird-values-in-database/#findComment-651767 Share on other sites More sharing options...
2levelsabove Posted September 27, 2008 Author Share Posted September 27, 2008 I also get other weird values. Quote Link to comment https://forums.phpfreaks.com/topic/126033-weird-values-in-database/#findComment-651858 Share on other sites More sharing options...
wildteen88 Posted September 27, 2008 Share Posted September 27, 2008 This is most probably a charset issue. Quote Link to comment https://forums.phpfreaks.com/topic/126033-weird-values-in-database/#findComment-651867 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.