Project

General

Profile

Actions

Bug #17447

closed

locallang.xml will not allow special chars in the default section

Added by Roger Sennert over 17 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2007-07-06
Due date:
% Done:

0%

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

Description

When using the default section of locallang.xml to define strings you can not use special characters while the typo3 installation is running in utf-8 mode.

For example.
<label index="list_mode_3">Temp. in °C</label> will not output the ° but a ?

This is also true when using other valid utf-8 characters (like ü ä ß 㦒 㦒 㦒 and so on). It's working fine if you are using any other languageKey.

(issue imported from #M5912)

Actions #1

Updated by Martin Kutschker over 17 years ago

Language "default" is per definition restricted to the characters of latin1. But thhose accented letters and umlauts must be encoded in utf-8. Make sure your editor writes utf-8 data when editing the locallang.xml file.

Actions #2

Updated by Roger Sennert over 17 years ago

That's the problem.
I'm very sure that the file was edited with an UTF-8 Editor. (Since the locallang.xml also contains the other languages)

My Typo3 installation was first only with latin1 characters. But I needed more languages (Russia, Chinese) so I converted the installation to UTF-8 (force_charset and database tables).
Before I converted the installation accented letters and umlauts weren't a problem in the default section. After that it is! I know that there is a special routine which take care of accented letters and umlauts in default section. And as far as I can see this isn't working when the complete installation is running in the UTF-8 mode.

Actions #3

Updated by Stefan Neufeind over 13 years ago

UTF-8 should meanwhile work fine in current releases.

Actions #4

Updated by Alexander Opitz over 11 years ago

  • Status changed from Needs Feedback to Closed
  • Target version deleted (0)

No response over one year => closed.

Btw. I didn't run in such a problem.

Actions

Also available in: Atom PDF