#37 — confirmation mail encoding pb
by
Régis Rouet
—
last modified
Sep 19, 2011 05:28 PM
| State | Unconfirmed |
|---|---|
| Version: |
—
|
| Area | User interface |
| Issue type | Bug |
| Severity | Medium |
| Submitted by | Régis Rouet |
| Submitted on | Sep 08, 2011 |
| Responsible |
—
|
| Target release: |
—
|
I get "??" for non acsii char in the subscription confirmation mail.
Added by
Régis Rouet
on
Sep 08, 2011 05:29 PM
sorry, it's finemy test was bad
Added by
Régis Rouet
on
Sep 08, 2011 05:39 PM
new updateI fact, there may be an encoding detection pb.
Testing with yopmail, "english" is auto-detected.
If I manually switch to utf-8 in yopmail, the mail display is fine then.
EDIT :
The mail contains the headers :
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Added by
Régis Rouet
on
Sep 19, 2011 05:28 PM
Here, I fixed this fix in registration.pymsg = MIMEText(msg_text)
->
props = getToolByName(self, "portal_properties").site_properties
charset = props.getProperty("default_charset")
msg = MIMEText(msg_text, _charset=charset)
No responses can be added.
If you can, please log in before submitting a reaction.
