Opened 15 years ago

Closed 14 years ago

#11237 closed (invalid)

force_unicode in forbid_multi_line_headers always raises UnicodeEncodeError

Reported by: Michał Łowicki Owned by: nobody
Component: Core (Mail) Version: 1.0
Severity: 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

In core/mail.py line 74 i get always UnicodeEncodeError with my dns - \xa3ow.BOROWSKA:
'utf8' codec can't decode byte 0xa3 in position 26: unexpected code byte. You passed in '<20090530221904.156.37508@\xa3ow.BOROWSKA>' (<type 'str'>)

Change History (3)

comment:1 by Michał Łowicki, 15 years ago

Component: Uncategorizeddjango.core.mail

comment:2 by Michał Łowicki, 15 years ago

It seems that my host name - 'Łow' is encoded with cp-1250 and this is a problem. How can I this fix without change host name on computer ?

comment:3 by Russell Keith-Magee, 14 years ago

Resolution: invalid
Status: newclosed

Impossible to diagnose without details of what it is you're actually doing. Feel free to reopen and provide more details - specifically, the exact sequence of calls that you are making that causes this error.

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