Bug 217053 - kmail get wrong unicode characters from command line
Summary: kmail get wrong unicode characters from command line
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-02 12:57 UTC by Murz
Modified: 2013-02-23 17:14 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 Murz 2009-12-02 12:57:02 UTC
Version:            (using KDE 4.3.4)
OS:                Linux
Installed from:    Ubuntu Packages

If I try to set the recipient name in kmail from command line (konsole):
$ kmail "Алексей <murz@example.com>" -c "Вася <vasya@example.com>"
I see the wrong characters in email window:
TO: ذذ؛ذ�ذ�رذ�ذ� <murz@example.com>
CC: ذذ�رر <vasya@example.com>

I have using UTF-8 locale in system, konsole and kmail:
$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME=ru_RU.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=


When I set only english letters, all works good:
$ kmail "Alexey <murz@example.com>" -c "Vasya <vasya@example.com>"

I try to url-encode the letters:
kmail "%D0%90%D0%BB%D0%B5%D0%BA%D1%81%D0%B5%D0%B9+%3Cmurz%40example.com%3E%" -c "%D0%92%D0%B0%D1%81%D1%8F+%3Cvasya%40example.com%3E"
but this isn't help.
Comment 1 Torgny Nyblom 2009-12-02 15:51:30 UTC
This has been fixed in trunk (will be 4.4). Fix probably was added to late for the 4.3.4 release.
Comment 2 F Hammer 2013-02-22 22:39:45 UTC
Unfortunately i rediscovered this bug again in kmail 4.7.2 and 4.9.5. 
When i do kmail -s "hello" --msg path/to/my/utf8text.txt i've got wrong encoded "umlaute" äöü etc.

I guess we have to reopen.
Comment 3 Laurent Montel 2013-02-23 17:14:46 UTC
I  think you must use next 4.10.1:)