Project

General

Profile

Actions

Bug #15510

closed

UTF-8 sites display garbled chars in select-fields (in BE)

Added by Ernesto Baschny about 18 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2006-01-26
Due date:
% Done:

0%

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

Description

Steps to reproduce (TCEforms):

1) Set forceCharSet = utf-8.
2) Login to the backend, create a usergroup called "ÄÄÄ" (or any other non-ascii-char)
3) Create a user and add the group to the user (clicking on the right box). Upon adding, the group-name is add correctly to the left box.
4) Save the form and look at the result. Instead of "ÄÄÄ" you have a 6 bytes-string

Other place where it occurs (flexforms):

1) Set forceCharSet = utf-8.
2) Add tt_news extension
3) Create a News Category called "ÖÖÖ"
4) Add a News-Plugin as a content element, and tell it to display only elements in the category "ÖÖÖ".
5) Save and look at the displayed value in the left category box, its garbled again.

The attached minor patch (to latest 4.0-CVS) seems to solve it. But I think more thinking has to be done here.

The only change the patch does is that LANG->sL() won't try to convert from the encoding specified for the current users language (e.g. iso-latin-1) to UTF-8. In the case of values coming from the DB, they are already UTF-8, so this would cause double-encoding.

There might be side-effects, because sL() is also used for the "language-splitted" labels, but they are obsolete anyway. And I cannot imagine any latin-1 encoded string to enter this part of the function if the site is set to forceCharSet=utf8.

Non-forceCharSet-sites aren't affected by this change, because hscAndCharConv won't don anything other than htmlspecialchars, which I still do in my change.

Initially reported for TYPO3 4.0
(issue imported from #M2396)


Files

utf8-forms-2006-01-26.diff (792 Bytes) utf8-forms-2006-01-26.diff Administrator Admin, 2006-01-26 16:50
bug_2396_2006-01-30.diff (1.99 KB) bug_2396_2006-01-30.diff Administrator Admin, 2006-01-30 21:58

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #14848: utf-8 data gets converted to utf-8 again under MySQL 4.1.11ClosedMichael Stucki2005-07-05

Actions
Actions #1

Updated by Tomas Mrozek about 18 years ago

The problem occurs even in older versions of Typo3 (I can confirm version 3.8.1). Manually applying changes from the attached patch utf8-forms-2006-01-26.diff solves the problem.

Actions #2

Updated by Jorgo S. about 18 years ago

Please check if there is a relation to this bug: http://bugs.typo3.org/view.php?id=1262

Actions #3

Updated by Tomas Mrozek about 18 years ago

Ernesto Baschny mentions 2 multiple select boxes in his bug description.
I just noticed that there is another (different though similar in nature) problem with "page browser" (browser used for choosing pages, for example for choosing "Single-view page" when editing tt_news categories).
When the page is clicked in the page browser, it is inserted into the input field with broken characters. As soon as the category is saved the text in the input filed becomes alright.

Actions #4

Updated by Alexandre Bourget over 16 years ago

I'm still having this problem with Typo3 v4.1.2.

Every time I get one of those "category selection" forms, I get broken UTF-8 rendering. It happens in tt_news Category selection and in the 'cal' calendar category selection.

I have forceCharset = utf-8

Was this bug fixed at some point ?

Actions #5

Updated by Markus Klein about 12 years ago

  • Target version deleted (0)

Is this still valid?

Actions #6

Updated by Stefan Galinski about 12 years ago

  • Status changed from New to Needs Feedback
Actions #7

Updated by Jigal van Hemert about 11 years ago

  • Status changed from Needs Feedback to Closed

Can't be reproduced. Now that the complete core and BE are UTF-8 in all supported versions, this can't be a problem anymore. Closed.

Actions

Also available in: Atom PDF