diff --git a/trac/web/api.py b/trac/web/api.py
index 3944020..0e62804 100644
a
|
b
|
class Request(object):
|
702 | 702 | self.environ['QUERY_STRING'] = qs_on_post |
703 | 703 | |
704 | 704 | args = [] |
705 | | for value in fs.list or (): |
706 | | name = value.name |
707 | | if not value.filename: |
708 | | value = unicode(value.value, 'utf-8') |
709 | | args.append((name, value)) |
| 705 | try: |
| 706 | for value in fs.list or (): |
| 707 | name = value.name |
| 708 | if not value.filename: |
| 709 | value = unicode(value.value, 'utf-8') |
| 710 | args.append((name, value)) |
| 711 | except UnicodeDecodeError, e: |
| 712 | raise HTTPBadRequest(_("Invalid encoding in form data: %(msg)s", |
| 713 | msg=exception_to_unicode(e))) |
710 | 714 | return args |
711 | 715 | |
712 | 716 | def _parse_cookies(self): |