I offer my condolences. Technical solutions to political problems are seldom completely satisfactory.
One possibility is that he doesn't actually get access to the templates directory, but gets read access to that directory, and write access to another directory, from which a script that he can invoke will copy his offering to the corresponding spot in the real templates directory, but only if it qualifies or can be cleaned up automatically. Possibly better is to give him a dummy server to which to make his changes, and achieve the political state in which he must make it work there before it can be moved to the live site. You are using revision control on these templates, I hope? Bill On Fri, Mar 19, 2010 at 10:44 AM, Steven L Smith <ssmit...@naz.edu> wrote: > We have a freelance designer that, for various political reasons, we need to > give access to our templates directory. The problem is, he frequently pastes > from Microsoft Word, and other sources, and then we're seeing HTTP 500 errors > because the output contains unescaped UTF-8 / unicode characters. > > For example, "UnicodeDecodeError: 'utf8' codec can't decode byte 0x94 in > position 30076: unexpected code byte". > > Is there a way to prevent these errors, other than revisiting the level of > access we give folks like this? Some kind of middleware that would filter > these characters out? Some kind of way to replace weird characters with a > bright pink blinking exclamation point? Something else? > > Thanks! > > Steven L Smith > Web Developer > Nazareth College of Rochester > http://www.naz.edu/ > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.