Project

General

Profile

Actions

Bug #16542

closed

utf-8 in classes names

Added by Nickolas Shadrin over 17 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Should have
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2006-09-08
Due date:
% Done:

0%

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

Description

I defined some classes names in UTF-8, like

RTE.classes.myClass.name = main-text: ???? ???

In the select box I got a complete garbage, you can look at the screenshot
http://www.typo3pro.ru/fileadmin/img/rte.jpg

(issue imported from #M4183)


Files

rte.jpg (28.9 KB) rte.jpg Administrator Admin, 2006-09-08 18:20
rtehtmlarea_bugfix_4183.patch (3.5 KB) rtehtmlarea_bugfix_4183.patch Administrator Admin, 2007-10-16 04:41
Actions #1

Updated by Michael Stucki over 17 years ago

I am not sure but as far as I remember, class attributes may only contain ASCII characters...(?)

Actions #2

Updated by Nickolas Shadrin over 17 years ago

then it would be a feature request.-)

Actions #3

Updated by Uschi Renziehausen over 17 years ago

I encountered similar problems with german umlauts. As a workaround I am using a locallang xml-file (fileadmin/rtestuff.xml) and then in my rte-config something like this:

RTE.classes {
odd.name = LLL:fileadmin/lang/locallang_rteclasses.xml:odd
even.name = LLL:fileadmin/lang/locallang_rteclasses.xml:even
...
}

This means extra overhead in sites without the need for multilingual labels, but at least they are possible then and it works.

To Michael: The names in css-code might be to cryptic and technical for authors, so you need more descriptive labels in the select lists visible to them.

Actions #4

Updated by Michael Stucki over 17 years ago

@Uschi: Can you give me an example of such a label? After all they are primarly class names, not labels. And because of this, the special chars are still a bad solution...

Actions #5

Updated by Dmitry Dulepov over 17 years ago

class names can contain any character from document's character set. See:

http://www.w3.org/TR/html401/struct/global.html#adef-class :
---------------
class = cdata-list [CS]
This attribute assigns a class name or set of class names to an element. Any number of elements may be assigned the same class name or names. Multiple class names must be separated by white space characters.
---------------

and http://www.w3.org/TR/html401/types.html#type-cdata :
---------------
CDATA is a sequence of characters from the document character set and may include character entities
---------------

Actions #6

Updated by Stanislas Rolland over 16 years ago

When the backend is forced to utf-8, labels or names directly entered in PageTSConfig are entered as utf-8 ... unless maybe if PageTSConfig is set through some php script. But, if PageTSConfig is set from a php script, the values should be specified through some language file (LLL:EXT:file or LLL:file).

If the values are entered directly in PageTSConfig, $LANG->sL(...) will apply a new conversion if $LANG->origCharset is not utf-8. For many languages, $LANG->origCharset is NOT utf-8.

Actions #7

Updated by Stanislas Rolland over 16 years ago

Fixed in SVN TYPO3core, trunk and TYPO3_4-1 (for inclusion in TYPO3 4.1.3).

Actions #8

Updated by Gerrit Code Review almost 9 years ago

  • Status changed from Closed to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39349

Actions #9

Updated by Gerrit Code Review almost 9 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39349

Actions #10

Updated by Stephan Großberndt almost 9 years ago

  • Description updated (diff)
  • Status changed from Under Review to Closed
  • Target version deleted (0)
  • TYPO3 Version set to 4.1
  • Is Regression set to No
Actions

Also available in: Atom PDF