Project

General

Profile

Actions

Bug #20032

closed

utf-8 support (cyrilic) problems with th_mailformplus

Added by oliver leitner almost 16 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-02-17
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

mf_error.jpg (30.9 KB) mf_error.jpg Administrator Admin, 2009-02-23 10:58
class.tx_thmailformplus_pi1.php (175 KB) class.tx_thmailformplus_pi1.php Administrator Admin, 2009-03-26 17:13
Actions #1

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.

Actions #2

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.

Actions #3

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

Actions #4

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)?

Actions #5

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.

Actions

Also available in: Atom PDF