Skip to content

@dpavlin /test-8bit-encoding.sh
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Dump all variations of Croatian 8-bit encodings
#!/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
@dpavlin
Owner

Example usage:

./test-8bit-encodings.sh data/ESB_izvadak-tekuci.csv | vi -R -c 'set nowrap' -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.