Project

General

Profile

Actions

Bug #18364

closed

Broken special chars in module title names (e.g. "TemplaVoilà ")

Added by Stephane Dupont over 16 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2008-03-04
Due date:
% Done:

0%

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

Description

The module title (in left menu, see attached screenshot), but also in the help label : "What is the TemplaVoilá page module?" has a problem (charset problem ?)

It should be TemplaVoilà, and not TemplaVoilá or TemplaVoilÃ

(issue imported from #M7744)


Files

Sans-titre-2.jpg (10.5 KB) Sans-titre-2.jpg Administrator Admin, 2008-03-04 11:02

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #18501: Enable UTF-8 by defaultClosedMichael Stucki2008-03-26

Actions
Actions #1

Updated by Dmitry Dulepov over 16 years ago

Looks like a local problem (see image)

Actions #2

Updated by Sascha Egerer over 16 years ago

I've got the same problem on a fresh install. Database collation is "utf8_general_ci".
I've updatet the translation files with the translation handling but the problem still exists.

But it only exists if the Backend Language is english. If i switch to german everything is displayed correct

Actions #3

Updated by Lars Dyhr over 16 years ago

I've got the same problem on several new installations (4.2.0) on varying servers. At first I suspected this to be related to the translation pack but when I force the character encoding from default ISO-8859-1 to utf-8 the characters are shown correct.
So, if the problem is related to the character encoding of the backend.php script we have to alter the method: initCharset in typo3/template.php
function initCharset() {
// Set charset to the charset provided by the current backend users language selection:
$this->charset = $GLOBALS['LANG']->charSet ? $GLOBALS['LANG']->charSet : $this->charset;
// Return meta tag:
return '<meta http-equiv="Content-Type" content="text/html; charset='.$this->charset.'" />';
}
- OR figure out how to set $GLOBALS['LANG']->charSet to utf-8 :-) which I couldn't figure out in my little research.
Should default not be utf-8 anyways?

Actions #4

Updated by Tolleiv Nietsch about 15 years ago

this is obviously a Core issue (which shows up whenever TemplaVoilà is used - therefore I'll move that to the Core-Project

Actions #5

Updated by Chris topher over 14 years ago

For me this problem is there, if you use different charsets in your database and in your backend.
E.g. when you use [SYS][setDBinit] = SET NAMES utf8; so that the database uses utf-8, but something different in [BE][forceCharset] for the encoding of the backend.

When you use utf-8 for your database, you also must set [BE][forceCharset] = utf-8. Otherwise you will see broken special chars in your content in the backend (or you already saved the content with the wrong encoding in the DB).

I don't think that TYPO3 can work correctly with a utf-8 database without [BE][forceCharset] = utf-8 at all.

Actions #6

Updated by Steffen Kamper over 14 years ago

this will change in 4.5 anyways, we hope to drop so much charset problems using utf8 in BE only.

Anyway this is no bug in trunk but in configuration, as Christopher already mentioned.

Actions #7

Updated by Chris topher over 14 years ago

Closed, configuration issue.

Actions

Also available in: Atom PDF