Project

General

Profile

Actions

Bug #17300

closed

CE Mailform (FE) -> bad characters in JS alert (required fields)

Added by Peter Zak about 17 years ago. Updated about 16 years ago.

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

0%

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

Description

After submitting mailform on FE, there is a JS alert window, when reguired fileds are missing. But using languages like SK, CZ, HU etc. (central europe) makes a problem wit correct diplaying of characters in labels of reguired fields. See screenshot pls.

Typo3: version 4.1.1 (but this problem exists since I use Typo3)
DB: MySQL 4.1.20
MySQL charset: UTF-8 Unicode (utf8)
MySQL connection collation: utf8_unicode_ci
localconf.php: $TYPO3_CONF_VARS['SYS']['setDBinit'] = 'SET NAMES utf8'.chr(10).'SET CHARACTER_SET utf8';

I am not sure, but it is probably cause of "rawurlencode" in typo3/sysext/cms/tslib/class.tslib_content.php / line 1930 etc.
(issue imported from #M5615)


Files

mailform_JS.gif (17 KB) mailform_JS.gif Administrator Admin, 2007-05-12 00:04

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #16164: Old Gremlin: Mail Form validation: solution of wrong Russian chars in JS pop-upClosedFrancois Suter2006-05-21

Actions
Actions #1

Updated by Martin Kutschker about 17 years ago

What is the language of the charset in the BE and FE? Do you use UTF8 for all as your DB setting suggest?

Actions #2

Updated by Peter Zak about 17 years ago

Yes, I use UTF-8 everywhere (BE/FE). This is an example of Hungarian language, but it makes the same problem as for other languages (Slovak, Czech, Polish, ...). As I mentioned above, when I comment "rawurlencode" in typo3/sysext/cms/tslib/class.tslib_content.php (starts on line 1930), the problem is over.

  1. part of TYPOSCRIPT CONFIG (BE)
    config {
    sys_language_uid = 0
    language = hu
    locale_all = hu_HU
    metaCharset = utf-8
    renderCharset = utf-8
    htmlTag_langKey = hu
    additionalHeaders = Content-Type:text/html;charset=utf-8
    }
  1. part of FE HTML source code
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="content-language" content="hu" />

If you need more infos and details, let me know please. Thanks.

Actions #3

Updated by Christian Kuhn about 16 years ago

This looks like a duplicate of #3527

Actions #4

Updated by Peter Zak about 16 years ago

Yes, you are right, this is the same problem as described in older bug #0003527. Thanks for finding duplicate. But I'm just reporter and that's why I can not merge bugs, do some "relation" to existing bugs or even delete it.

Actions

Also available in: Atom PDF