Code

Opened 5 years ago

Closed 4 years ago

#11237 closed (invalid)

force_unicode in forbid_multi_line_headers always raises UnicodeEncodeError

Reported by: mlowicki 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: UI/UX:

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'>)

Attachments (0)

Change History (3)

comment:1 Changed 5 years ago by mlowicki

  • Component changed from Uncategorized to django.core.mail
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 5 years ago by mlowicki

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 Changed 4 years ago by russellm

  • Resolution set to invalid
  • Status changed from new to closed

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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.