iconv
Check all by content in test.txt
for i in $(iconv -l | tr ',' '\n' | tr -d '//'); do s=$(iconv -f $i -t UTF8 test.txt 2>/dev/null); echo "$i: $s"; done > result.txt
Cyrillic
Check all by content in test.txt
for i in $(iconv -l | tr ',' '\n' | tr -d '//'); do s=$(iconv -f $i -t UTF8 test.txt 2>/dev/null); echo "$i: $s"; done > result.txt
Cyrillic