cooldude832 Posted October 12, 2007 Share Posted October 12, 2007 I have an old mysql table full of well ugly data. such as the following character and so forth, is there any way I can extract all the ugly characters from the fields before inserting to mysql. I have mysql_real_escape_string on all the incomming strings, but that didn't do it any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/73001-removing-characters-in-mysql-that-cant-be-read/ Share on other sites More sharing options...
cooldude832 Posted October 12, 2007 Author Share Posted October 12, 2007 Is there a function that can tell all non readable characters? Quote Link to comment https://forums.phpfreaks.com/topic/73001-removing-characters-in-mysql-that-cant-be-read/#findComment-368127 Share on other sites More sharing options...
MadTechie Posted October 12, 2007 Share Posted October 12, 2007 unreadable character ?? you could filter to only allow what you want to keep, to filter the VT try this $data= preg_replace('/\x{0B}/i', '', $data); Quote Link to comment https://forums.phpfreaks.com/topic/73001-removing-characters-in-mysql-that-cant-be-read/#findComment-368209 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.