Project

General

Profile

Actions

Bug #17279

closed

Tidy changes Meta-Tag charset

Added by Heiko Nöthen about 17 years ago. Updated over 10 years ago.

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

0%

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

Description

Tidy changes the correct Meta-Tag from

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

to

<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

Vlidators like http://validator.w3.org find foult in the difference between sended header and the metatag charset.

So TYPO3 should set the correct tidy option by config.metaCharset.

$TYPO3_CONF_VARS["FE"]["tidy_path"] = 'tidy ###CHARSET### -i -f /var/log/apache/tidy-log --quiet true -wrap 0 --tidy-mark no --hide-comments no --indent no';
(issue imported from #M5567)


Files

tidy_patch.txt (1.2 KB) tidy_patch.txt Administrator Admin, 2007-05-05 15:59
Actions #1

Updated by Martin Kutschker almost 17 years ago

The patch has a problem: there are many character sets more that TYPO3 supports, so you may not only support to UTF-8 and latin1 (iso-8859-1).

Furthermore there seems to a be a problem with tidy. I have created a simple HTML file with <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />. I have run tidy with -latin1 and yet it has changed the line to <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />.

Actions #2

Updated by Alexander Opitz about 11 years ago

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

The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?

Actions #3

Updated by Alexander Opitz over 10 years ago

  • Status changed from Needs Feedback to Closed

No feedback for over 90 days.

Actions

Also available in: Atom PDF