I have an invisible character in a string that I have read in from my database. I need to convert the invisible character to something else so that when I use the data to generate an XML file it does not complain that it is not a well formed xml document. I extracted the hex from the file (am not sure I know how to use what I saw yet). But I am guessing I need a way to use an ereg_replace like function to replace the hex representation of the invisible character with another character. Does anyone know how to do this? The invisible character is
(Don t) where the space in Don't is, and it might be a smart quote from some windows text editor. Help would be greatly appreciated.