Opened 8 years ago

Closed 8 years ago

#27547 closed Uncategorized (worksforme)

Unicode in Textarea breaks rendering

Reported by: Nitesh Lohchab Owned by: nobody
Component: Uncategorized Version: 1.10
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

If you try to render unicode context in textarea, the rendering breaks with : ascii codec can't encode unciode error

Change History (2)

comment:1 by Nitesh Lohchab, 8 years ago

Changing '<textarea{}>\r\n{}</textarea>' to u'<textarea{}>\r\n{}</textarea>' should fix this. I can send a pull request.

comment:2 by Claude Paroz, 8 years ago

Resolution: worksforme
Status: newclosed

It is highly unlikely that the bug is in Django. The string you mention is already unicode due to the from __future__ import unicode_literals import at the top of django/forms/widgets.py.
Please use TicketClosingReasons/UseSupportChannels first to determine the problem, and reopen the ticket if you can demonstrate that Django is at fault.

Note: See TracTickets for help on using tickets.
Back to Top