Opened 17 years ago
Closed 12 years ago
#6849 closed Bug (wontfix)
UnicodeEncodeError thrown when unicode messages were sent to outlog&errlog
Reported by: | feisan | Owned by: | nobody |
---|---|---|---|
Component: | Core (Other) | Version: | dev |
Severity: | Normal | Keywords: | outlog errlog runfcgi unicode |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | yes |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
pythin manage.py runfcgi --settings=settings \ maxchildren=20 maxspare=10 minspare=2 \ outlog=xxx.out \ errlog=xxx.err
and the view code is
def someview(request): print u'\u6d4b\u8bd5' #should be sent to outlog, but the UnicodeEncodeError thrown
Attachments (1)
Change History (8)
by , 17 years ago
comment:1 by , 17 years ago
comment:2 by , 17 years ago
Has patch: | set |
---|---|
Patch needs improvement: | set |
Triage Stage: | Unreviewed → Accepted |
comment:3 by , 17 years ago
Description: | modified (diff) |
---|
comment:4 by , 14 years ago
Severity: | → Normal |
---|---|
Type: | → Bug |
comment:7 by , 12 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Several years without activity, closing...
Note:
See TracTickets
for help on using tickets.
That's because the files opened by become_daemon don't have any support for writing unicode to them. You could try the patch I uploaded (I'm not set up to run in this config.) It opens the files specifying they should be utf-8 encoded. Not sure if it should be hardcoded to that or use a setting, but first off maybe someone should test that the approach even works.