Re: Issue, not sure how to solve
Adam Tauno Williams <[email protected]> Wed, 17 Aug 2011 08:56:18 -0400
| Newsgroups | gmane.comp.cms.opengroupware.xmlrpc.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 2011-08-16 at 16:37 -0400, Adam Tauno Williams wrote: > On Tue, 2011-08-16 at 15:45 -0400, Dirk H Bartley wrote: > > Ok, .. .. I am feeling dumb. I was figuring it was non-printable > > characters, but did not see any in the single line string. Even now, > > when I search for 0E, vi is telling me that searching for 0E yields no > Can you search for \0E or \00 or \000? Since it is non-printable you > have to search for it by the octal or hex value. > > results. So how do I find the offending customer record this time?? > > Then, How do I prevent such offending characters in from being put in in > > php in the future. > It is a nuiscance, and not just in this case but in web applications in > general (although if you never produce anything 'verifiable' such as XML > you may never notice - just odds things will occur occasionally). > Somewhere around here I've got a spell for fixing this kind of gunk; but > I can't seem to lay hands on it at the moment. I have - UPDATE telephone SET number = REPLACE(number, '\016', ''), object_version = object_version + 1 WHERE number LIKE '%\016%'; - in my notes, which at least removes one 'bogus' character. -- OpenGroupware.org XML-RPC [email protected] http://mail.opengroupware.org/mailman/listinfo/xmlrpc