Bug 136331

Summary: Date toLocaleString prints date in incorrect charset
Product: [Applications] konqueror Reporter: Dmitry Kazarov <hanabana>
Component: kjsAssignee: Konqueror Developers <konq-bugs>
Status: CONFIRMED ---    
Severity: normal CC: kollix, maksim
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: FreeBSD   
Latest Commit: Version Fixed In:

Description Dmitry Kazarov 2006-10-26 08:47:03 UTC
Version:           3.5.4 (using KDE 3.5.4, compiled sources)
Compiler:          gcc version 3.4.6 [FreeBSD] 20060305
OS:                FreeBSD (i386) release 6.2-PRERELEASE

I use ru_RU.UTF-8 locale in OS.
document.writeln((new Date()).toLocaleString()) output is scrambled. It seems that toLocaleString applies conversion from ISO8859-1 to UTF-8 charset for string that is already in UTF-8 charset.

Sample page to show this behavior
<html>
<head>
<title>Проверка Date.toLocaleString</title>
<meta http-equiv='Content-Type' content='text/html;charset=UTF-8'>
</head>
<body>
Дата: <script type="text/javascript">document.writeln( (new Date()).toLocaleString() );</script>
</body>
</html>
Comment 1 Kurt Pfeifle 2007-01-06 20:09:06 UTC
Dmitry, have you had a chance to test it with KDE 3.5.5 yet?
Comment 2 Māris Nartišs 2007-01-07 23:22:27 UTC
I can confirm it with KDE 3.5.5 on Gentoo. Locale: lv_LV.UTF-8
Comment 3 Dmitry Kazarov 2007-01-09 07:46:37 UTC
Yes, problem still exists
Comment 4 Martin Koller 2011-06-12 16:02:48 UTC
still a problem with 4.6.4