KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   


- Content .- Fans  .- Knowledge Base  . 

Convert text files to utf-8


KDE Service Menu

Score 65%
Convert text files to utf-8

Convert text files to utf-8

Link:  http://
Downloads:  1085
Submitted:  Feb 24 2005


Convert any text file from latin-1 charset to utf-8
by two mouse clicks.


After upgrading my Linux box to Suse 9.2, I had a
big problem: In many text(-based) files there didn't
show up any non-ascii characters (e.g. umlauts: )
any more. Instead there were ugly boxes or even
nothing at all.

It took me quite some googling until I found the
reason and solution: Suse switched their default
encoding to utf-8, so that files from my old system
as well as some new files I encounter from time to
time being encoded in latin-1 don't show up correctly
any more.

The solution is to convert every single of these files
to utf-8 using the command line tool "iconv", which
is part of the c library and therefore should be
present on any Linux system.

To ease things up, I created this KDE service menu which
allows me to convert files with just two mouse clicks
and even works on multiple selected files. So, every
time I encounter another non-utf-8 file, I can continue
working with a corrected file in only a matter of
seconds :-).

As there seem to be many other users with this kind
of problem out there, I decided to share it to you.
So enjoy and drop me a note (kde@benno-dielmann.de)
, if you like it (or if there are problems...)!


Copy the file




and you are done!


Select the file(s) to convert and select "convert to
utf-8" from the actions submenu of the right-mouse-
button menu. A new (converted) file with suffix _utf-8
is created in the same directory. The original file is
left untouched, in case anything went wrong ;-).

Send to a friend
Other  Apps  from bendie
Report inappropriate content


 encoding detection?

 by testerus on: Feb 24 2005
Score 50%

How do you detect the encoding of the textfile before converting for utf-8?

Are you using the encoding detection of Konqueror (http://webcvs.kde.org/kdelibs/khtml/misc/) or Mozilla (http://www.mozilla.org/projects/intl/chardet.html)?

Reply to this


 Re: encoding detecti

 by bendie on: Feb 25 2005
Score 50%

;-) In fact, there is no encoding detection at all. Its just a simple wrapper for the command

iconv -f latin-1 -t utf_8 %u -o %u_utf-8

where %u is the selected file. Nothing more. If you have to convert other encodings than latin-1, I suggest you to replace this in the iconv-servicemenu.desktop.

If you know of any method to add automatic detection please let me know. The examples you provide all seem to involve programming exceeding the scope of such a simple service menu entry. Correct me if I'm wrong...

For me personally, there isn't any need for several different input encodings since I use it mainly for converting my old files from my backups (See the lengthy description above...), on which latin-1 works quite well.

If there is anyone out there needing detection of different input encodings, please let me know, so I can think about a way to add it.

Reply to this

Add commentBack

How do you like Plasma 5?
 The best KDE Desktop ever.
 Definitely a nice improvement.
 Not decided yet. Haven't tried it yet.
 I do not like some of the changes.
 KDE is taking the wrong way.
 I am still sticking with KDE 3.5.
 I have no opinion, but wanted to vote anyway.

 Who we are
More about us
Frequently Asked Questions
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
Events RSS   

Add App
Public API
About KDE-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Sponsor us
Report Abuse

Copyright 2003-2015 KDE-Apps.org Team  
All rights reserved. KDE-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.