5
rated 0 times
[
5]
[
0]
/ answers: 1 / hits: 2200
/ 1 Year ago, sat, march 25, 2023, 12:19:19
I think the ideal solution for me is a Nautilus Script that performs encoding conversion on selected files.
The following script reads the encoding of a selected file and performs utf8 conversion if it's not utf8, but I couldn't figure out how to make it work on multiple files:
CHARSET="$(file -bi "$1"|awk -F "=" '{print $2}')"
if [ "$CHARSET" != utf-8 ]; then
iconv -f "$CHARSET" -t utf8 "$1" -c -o "$1.utf8"
fi
More From » conversion