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 Nov 15, 2: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 offending characters at all. Is there a way to force > the textbox in the Django admin change form to be whatever kind of box > this is as to disallow users from breaking the system with bad > characters? Alternatively, can I strip the bad characters somehow when > they hit save? > > Best regards, > > Joel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---