[Typo3] Some problems with Direct Mail (charset/encodin and url in plaintext)

Erik Svendsen erik at linnearad.no
Tue Oct 25 10:33:26 CEST 2005


Hi list.

Hope someone can give me some idea to solve these two problems.

First, the charset problem (I think it something about the charset)
All my plaintext mails get wrong encoding. They look like this. Language 
Norwegian. The HTML mail looks like it should.

<--- example --->
Det kan v&aelig;re greit &aring; teste mailen med det meste av innhold. Og 
se om det g&aring;r bra
<--- end --->

As you see the Norwegian characters æ, ø å are encoded as &aelig, &aring e.g.

The text mail has the following encoding when it reach the address.

<--- example --->
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by mx.domeneshop.no id j9ODTWtY015113
<--- end --->

Have tried with quoted-printable with the same result. Have also tried with 
setting [forceCharset] in Install tool to either iso-8859-1 or utf-8. utf-8 
gives different encoding, bit still it's wrong. The mail is written from 
scratch after changing charset. With utf-8 the resulting mails are still 
using charset iso-8859-1 (plain text), but utf-8 in HTML-mails (who got wrong 
encoding). Could the X-MIME-Autoconverted: by my mailhost be the problem. 
The HTML mails don't look like they are converted.

It has to be mentioned that I'm using Direct Mail with TV. Peter Kindström's 
wikipage http://www.infolagret.se/typowiki/index.php/Ext/Direct_mail are 
used for the setting up of Direct mail (thanks Peter).

Could the extension KB Mail Charset be a solution. Or are there other ways, 
either through TS or changing something in the code.

My installation is (ISP): TYPO3 3.8.0, Direct Mail 1.1.0, PHP 4.4.0, MySQL 
4.1.14 (charset Latin1, could be the reason), Linux. Can't test at the time 
on another server, because I have to solve some sendmail problems first.

Second problem: The url in plain text mail are wrong. Trying to open them 
give following result. can't find www.example.com.test. (I know this is the 
dummy site in the plaintext TS) The url configuration in the Direct Mail 
are correct, and the template has the following sentences in the setup.

<--- code --->
lib.alt_plaintext.renderObj.siteUrl = http://www.linnearad.no/
lib.alt_plaintext.renderObj.bodytext.stdWrap.parseFunc.tags.typolist.siteUrl 
= http://www.linnearad.no/
lib.alt_plaintext.renderObj.bodytext.stdWrap.parseFunc.tags.typohead.siteUrl 
= http://www.linnearad.no
lib.alt_plaintext.renderObj.bodytext.stdWrap.parseFunc.tags.typohead.siteUrl 
= http://www.linnearad.no/
lib.alt_plaintext.renderObj.bodytext.stdWrap.parseFunc.tags.typocode.siteUrl 
= http://www.linnearad.no/
<--- end code --->

Could be that I have to make this work for the whole site, and not only the 
Direct Mail template.


WBR,
Erik Svendsen
www.linnearad.no





More information about the TYPO3-english mailing list