Bug 136331 - Date toLocaleString prints date in incorrect charset
Summary: Date toLocaleString prints date in incorrect charset
Status: CONFIRMED
Alias: None
Product: konqueror
Classification: Applications
Component: kjs (show other bugs)
Version: unspecified
Platform: unspecified FreeBSD
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-26 08:47 UTC by Dmitry Kazarov
Modified: 2011-06-12 16:02 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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