Project

General

Profile

Actions

Bug #16870

closed

Garbage characters displayed in flexform field labels

Added by Dmitry Dulepov almost 18 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2007-01-20
Due date:
% Done:

0%

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

Description

Non-latin1 characters in labels of flexform fields are not displayed properly. The problem is that they are in utf-8 but $LANG-sL tries convert them from local charset (normally iso-88591-1 for English) to UTF-8 thus making complete junk (see attached file).

(issue imported from #M4813)


Files

ff_garbage.gif (12 KB) ff_garbage.gif Administrator Admin, 2007-01-20 22:08
ff_label_charset.txt (17 KB) ff_label_charset.txt Administrator Admin, 2007-01-20 22:20
ff_label_charset_change_only.txt (1.6 KB) ff_label_charset_change_only.txt Administrator Admin, 2007-01-20 22:20
fce.gif (14.7 KB) fce.gif Administrator Admin, 2007-01-26 16:16
patchfile.patch (2.89 KB) patchfile.patch Administrator Admin, 2007-02-25 17:57
Actions #1

Updated by Dmitry Dulepov almost 18 years ago

ff_label_charset.txt - valid for 4.1beta3 and contains other changes by ExtDevEval
ff_label_charset_change_only.txt - contains fix only

Actions #2

Updated by Nele almost 18 years ago

Additionally to this resolved bug mentioned above I have another problem with TV.

After forcing the BE to utf-8 and setting german as BE-language the german labels (with umlauts) in the Templavoila BE are displayed wrongly (see attachment | fce.gif). It seems that the labels which are stored in the XML-file typo3conf/ext/templavoila/mod1/locallang.xml are converted to utf-8 despite the fact that they're already present in this charset.

Versions and settings:
-------------------------------
Typo3 4.0.4
TemplaVoila 1.2.1
MySQL 4.1.18 (everything is UTF-8)
PHP 5.1.2
All Configuration in Install Tool: nothing changed, but [BE][forceCharset] = utf-8
Backend language set to german

Thanks for any hint in advance.
Nele

Actions #3

Updated by Nele almost 18 years ago

I found out that the labels (with umlauts) in the Templavoila BE are displayed correctly when I changed this line in t3lib/class.t3lib_div.php:
$origCharset = $csConvObj->parse_charset($csConvObj->charSetArray[$langKey] ? $csConvObj->charSetArray[$langKey] : 'iso-8859-1');

to this:
$origCharset = $csConvObj->parse_charset($csConvObj->charSetArray[$langKey] ? $csConvObj->charSetArray[$langKey] : 'utf-8');

But then the other umlauts in the T3 Backend are displayed wrongly.

Hoping that this may help to solve this problem.

Actions #4

Updated by Jens Köster over 17 years ago

After I applied the patch I still had some wrong encoded umlauts in section form elements. I fixed that. See patchfile.patch.

Actions #5

Updated by Michael Bakonyi almost 17 years ago

Hm, it seems like the problem isn't solved, right? My umlauts still look scrambled. How can one apply the patch posted above? Do I have to have SSH-Access to apply the patch?

Actions #6

Updated by Dmitry Dulepov over 16 years ago

Waits for alternative charset patch from Masi

Actions #8

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF