Linux Community
Kate: can no longer change text encoding when saving a file. It used to be possible in KDE 4, but it's no longer possible with the latest version:
Version 16.08.3 Using: KDE Frameworks 5.29.0 Qt 5.6.2 (built against 5.6.2)
KDE's text editor.
Change text encoding when saving a file. Find it in the menu entry: File > Save as with encoding...
file --mime file.txt outputs the mime information which includes the encoding.
file --mime file.txt
dev-haskell/iconv http://hackage.haskell.org/package/iconv String encoding conversion
app-i18n/enca http://gitorious.org/enca ENCA detects the character coding of a file and converts it if desired
Within a bash script, how to test the encoding of a file and convert the encoding if necessary?