Bug #20032
closedutf-8 support (cyrilic) problems with th_mailformplus
0%
Description
When doing translations for mailformplus, cyrilic is not working (russian, croatjan)
leads to special char problems
install 4.1.10
install th_mailformplus 4.0.12
create a form
make a translation via locallang file to russian
(issue imported from #M10460)
Files
Updated by oliver leitner over 15 years ago
i have narrowed the problem a bit down:
the server is "understanding" utf-8 right.
the file is saved as utf-8 right.
the template gets loaded into mailformplus correctly.
the content type of the page is utf-8.
static_info_tables has the current version
it seems that the core is not "understanding" utf-8, though locale_all is set right in our language typoscript file.
Special chars in german work without a problem, its just languages like russian or japanese, that cause problems.
Updated by oliver leitner over 15 years ago
"Fastfix", works for 80% of the words in russian:
if($_GET['L'] == '9') {
$langMarkers['###LLL:'.$marker.'###'] = recode_string("utf-8..windows-1251", $GLOBALS['TSFE']->sL('LLL:'.$this->langFile.':'.$llKey));
} else {
$langMarkers['###LLL:'.$marker.'###'] = trim($GLOBALS['TSFE']->sL('LLL:'.$this->langFile.':'.$llKey));
}
More info:
http://at2.php.net/manual/de/function.recode-string.php
http://www.delorie.com/gnu/docs/recode/recode_toc.html
And yes, i know this is a hack, and not clean.
Updated by oliver leitner over 15 years ago
simpler fix:
$langMarkers['###LLL:'.$marker.'###'] = recode_string("utf-8..{$GLOBALS['TSFE']->labelsCharset}", $GLOBALS['TSFE']->sL('LLL:'.$this->langFile.':'.$llKey));
full file attached
Updated by Alexander Opitz over 11 years ago
- Category deleted (
Communication) - Status changed from New to Needs Feedback
- Target version deleted (
0)
The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?
Updated by Chris topher over 11 years ago
- Status changed from Needs Feedback to Closed
oliver leitner wrote:
it seems that the core [of TYPO3 4.1] is not "understanding" utf-8, though locale_all is set right in our language typoscript file.
In current versions the TYPO3 Core supports UTF-8 properly.