[TYPO3-core] FYI: Fixed bug #3546: htmlArea RTE: wrong charset used by mb_regex in spell checker

Stanislas Rolland typo3 at sjbr.ca
Tue Sep 9 04:54:39 CEST 2008


FYI: The attached SVN patch was committed.

Type:
Bugfix

Problem:
All characters with accents or umlauts, etc, are broken in the output of 
the spell checker.

Solution:
A long time ago, I do not know nor remember why, a line in script 
pi1/class.tx_rtehtmlarea_pi1.php was commented out:
$regex_encoding = mb_regex_encoding(strtoupper($this->parserCharset));

It turns out that the line may be essential when the backend is utf-8 
encoded, depending on the default settings of the PHP mbstring 
extension. This is because the script changes the mbstring internal 
encoding to utf-8, but that does NOT change the internal encoding used 
by mb_regex. The encoding used by mb_regex must therefore be explicitly 
changed accordingly.

The issue does not arise with trunk where the requirement for mbstring 
has been removed.

Bugtracker references:
http://bugs.typo3.org/view.php?id=3546

Branches:
TYPO3_4-1 (revision 4084)
TYPO3_4-2 (revision 4085)

Regards,
Stanislas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rtehtmlarea_bugfix_3546_typo3_4-2.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080908/0f1fd476/attachment-0001.txt 


More information about the TYPO3-team-core mailing list