[TYPO3-core] Correction to charset setting in t3lib_htmlmail

Franz Holzinger franz at fholzinger.com
Thu Jun 8 11:21:57 CEST 2006


Hello Stanislas,

> Martin Kutschker a écrit :
> [...]
>
>>
>> If you default to metaCharset all TSFE methods that work on the mail
>> data will use charset X, but the mail will be flagged Y. The charset
>> of the mail data may actually *be* in Y (depending on what your code
>> does), but TYPO3 will *treat* it as X.
>>
>
> Here is a new version of the patch.
>
> I agree with you that if metaCharset is different than renderCharset,
> the script that invokes t3lib_htmlmail needs to apply the conversion to
> the content of the mail, since t3lib_htmlmail does not take care of this
> conversion as I think it should. Perhaps this would require an
> additional patch.
>
this looks fine and works for me.

A semicolon is missing however:

$this->charset = $GLOBALS['TYPO3_CONF_VARS']['BE']['forceCharset'];

+1

- Franz







More information about the TYPO3-team-core mailing list