Re: Strip Illegal Characters - Django Admin

2007-11-16 Thread Kenneth Gonsalves
On 16-Nov-07, at 10:04 AM, Ramdas S wrote: > What exactly do you mean by sanitize. The biggest problem is word > users do is they cut and paste stuff into the text area boxes, and > even tiny_mce is not of much help. the whole idea behind tiny_mce is that it converts word/excel etc to

Re: Strip Illegal Characters - Django Admin

2007-11-16 Thread Kenneth Gonsalves
On 16-Nov-07, at 12:34 AM, Joel Hooks wrote: > My users are cutting and pasting descriptions from Word, and this > causes HTTP 500 errors with Django AMF (but not Django more broadly.) if your users are cutting and pasting from word, you could use tiny_mce to sanitise the pastes. It may be

Re: Strip Illegal Characters - Django Admin

2007-11-16 Thread Joe
You could try encoding the data in your view - something like: try: cleandata = rawinput.encode("iso-8859-1", "ignore") or 'Unknown data type' except: # Whatever you want here pass Just an option. Also depends on what you need to capture and return to users. I too deal with odd encodings. On

Re: Strip Illegal Characters - Django Admin

2007-11-15 Thread Ramdas S
Kenneth, What exactly do you mean by sanitize. The biggest problem is word users do is they cut and paste stuff into the text area boxes, and even tiny_mce is not of much help. But is there a setting in tiny_mce which we are missing? Do advise Ramdas On Nov 16, 2007 7:06 AM, Kenneth Gonsalves

Re: Strip Illegal Characters - Django Admin

2007-11-15 Thread Jeremy Dunck
On Nov 15, 2007 1:04 PM, Joel Hooks <[EMAIL PROTECTED]> wrote: > > My users are cutting and pasting descriptions from Word, and this > causes HTTP 500 errors with Django AMF (but not Django more broadly.) > This textbox that I am typing in here on groups.google.com won't allow > me to paste the