Opened 9 years ago
Closed 9 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 , 9 years ago
comment:2 by , 9 years ago
| Resolution: | → worksforme |
|---|---|
| Status: | new → closed |
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.
Changing
'<textarea{}>\r\n{}</textarea>'tou'<textarea{}>\r\n{}</textarea>'should fix this. I can send a pull request.