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? 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? 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); 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
Archived
This topic is now archived and is closed to further replies.