Bug #17300
closedCE Mailform (FE) -> bad characters in JS alert (required fields)
0%
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
Updated by Martin Kutschker over 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?
Updated by Peter Zak over 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.
- 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
}
- 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.
Updated by Christian Kuhn over 16 years ago
This looks like a duplicate of #3527
Updated by Peter Zak over 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.