public
Last active

Dump all variations of Croatian 8-bit encodings

  • Download Gist
test-8bit-encoding.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/bin/sh -x
 
file=$1
 
function encoding {
echo "# $1"
head $file | iconv -f $1 -t utf-8
}
 
encoding cp850
encoding cp852
encoding cp1250
encoding cp1252
encoding iso-8859-1
encoding iso-8859-2
encoding mac
encoding MAC-CENTRALEUROPE

Example usage:

./test-8bit-encodings.sh data/ESB_izvadak-tekuci.csv | vi -R -c 'set nowrap' -

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.