DeutschEnglish

Submenu

 - - - By CrazyStat - - -

12. January 2012

Typo3: Mailform charset problems after upgrade

Filed under: Typo3 — Tags: , , , , , , , — Christopher Kramer @ 14:22

After upgrading Typo3 from 4.1.6 all the way to 4.5.10, mails sent through the default Typo3 mailforms were messed up because the charset was wrong. The charset of the page was ISO-8859-1 consistently everywhere, but the Typo3 mailform expected input to be in UTF-8 and sent the mails as UTF-8 although the browser sent the data  encoded in ISO-8859-1.

After lots of things I tried, the following TypoScript fixed the problem. You simply put it into the TS of the Template.

page.config.formMailCharset= iso-8859-1

Of course you can put another charset in there if you have a similar problem with another charset.

It took me so long to find this out as the Typo3 code editor did not know the setting and it was not documented anywhere I looked at.

Maybe this helps somebody…

Recommendation

Try my Open Source PHP visitor analytics script CrazyStat.

4 Comments »

  1. Hi Christopher,
    your hint saved me lots of time! Thanks.
    Heiko
    T3UG Freiburg Germany

    Comment by Heiko Hänsge — 30. January 2012 @ 21:34

  2. Thank you for this helpful information. I had the same problem and spent several hours searching for the reason. After I had found out that a charset problem is responsible for it I googled how to set the correct charset. This led me to this blog entry.

    Comment by Pascal — 8. March 2012 @ 17:38

  3. […] When updating a Typo3 installation to Typo3 4.5.x, I had problems with charsets and explained the solution here. […]

    Pingback by Typo3 and other charsets than UTF-8 (latin1 / ISO-8859-1, …) « Christosoft Blog — 9. June 2012 @ 12:30

  4. The Typo3 mailform predicted feedback to be in UTF-8 and sent the emails as UTF-8 although the web browser sent the information protected in ISO-8859-1.

    Comment by Burke Day — 11. December 2012 @ 10:34

RSS feed for comments on this post. TrackBack URL

Leave a comment