UTF8 encoding

Martin (KDE) kde at fahrendorf.de
Fri Jun 9 07:28:00 BST 2006

James Richard Tyrer schrieb:
> KDE wrote:
>>Hello there,
>>I am currently changing from iso latin 1 encoding to utf8 and dicovered
>>some problems. No KDE application I found so far is able to
>>automatically select the right encoding of a file (content or filename
>>itself) or directory. In Kate/kwrite I can change the encoding by hand.
>>I kedit I have not found any encoding selection.
>>Can I (if yes how) set the kde programs to autodetect the encoding (like
>>vim and emacs) at least for the content (I usually do not use umlauts in
> You can't auto detect an UTF-8 file if it only contains Latin 1 glyphs 
> because the first page of Unicode is Latin 1.

Hm, emacs and vi have some intelligence about detecting the encoding of 
the file. Thats why I asked. Would be nice if kde get it too.

> IIUC, KDE will use your system settings for UTF-8 (at least it works on 
> my system).  You need to have the system set:

This works very well. But the problem are the old files from the last 
then or more years. They are coded in iso8859-15 style. Those files 
looks very ugly in an editor set to utf8.

> 	LC_ALL=en_US.UTF-8
> 	LANG=en_US.UTF-8
> substituting your language code for mine (en_US).  If your system 
> supports "profile.d" scripts, just add this script:
> ------8<------8<------8<------8<------8<------8<------8<------8<------
> LANG=en_US.UTF-8
> ------8<------8<------8<------8<------8<------8<------8<------8<------
> Otherwise, add the same stuff in "/etc/profile", and restart your X session.

This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

More information about the kde mailing list