Re: Behavior afterFind not filtering data?

2010-07-31 Thread Dr. Loboto
> I've discovered this because I'm attempting to run batches through the > Console. So, I'm only using a Shell script and the Model in question > and I'm definitely getting "?" where I should be getting ™. I've > verified that my database.php file is using 'encoding'  => 'iso-8859-1' > and that my

Re: Behavior afterFind not filtering data?

2010-07-31 Thread cricket
On Fri, Jul 30, 2010 at 11:03 AM, DragonFlyEye wrote: > Ok, the problem appears to be that somewhere in the bowels of > CakePHP's Models, it doesn't seem to like certain characters and just > replaces them with "?" > > I've discovered this because I'm attempting to run batches through the > Consol

Re: Behavior afterFind not filtering data?

2010-07-30 Thread DragonFlyEye
Ok, the problem appears to be that somewhere in the bowels of CakePHP's Models, it doesn't seem to like certain characters and just replaces them with "?" I've discovered this because I'm attempting to run batches through the Console. So, I'm only using a Shell script and the Model in question and

Re: Behavior afterFind not filtering data?

2010-07-22 Thread DragonFlyEye
Not really. We're talking about thousands of products for a start. And I expect to have problems with data entry in the future, like cutting and pasting from Word. Plus there is some resistence to changing things around here that I've got to slowly overcome. In the meanwhile, I have to be able to s

Re: Behavior afterFind not filtering data?

2010-07-22 Thread cricket
You haven't said what results you're seeing. Anyway, at a glance, I can see one problem. Sanitize::clean($results); should be: $results = Sanitize::clean($results); But, wouldn't it be simpler to just write a script that cleans up the DB once and forget about it? On Thu, Jul 22, 2010 at 2:06 P

Behavior afterFind not filtering data?

2010-07-22 Thread DragonFlyEye
I'm sure I'm missing something silly, but I cannot get this Behavior to work. I've got data with a bunch of nasty characters in the database that I need to avoid or escape before presenting to the browser. Also, it's got a lot of white space at the end of much of the data because someone erroneousl