Re: encoding of form variables in views

2006-06-14 Thread Ivan Sagalaev
Pistahh wrote: > now my question is how do I know the encoding of the variables in > data["something"] ? > This encoding should be the same that you're using for output (settings.DEFAULT_CHARSET). However nothing is preventing some broken user agent (like some badly written script) to send y

encoding of form variables in views

2006-06-13 Thread Pistahh
Hi, I have a view processing a form: def contact(request): manipulator = ContactManipulator () if request.POST: data = request.POST.copy() errors = manipulator.get_validation_errors (data) if not errors: manipulator.do_html2python(data)