Skip to content

Instantly share code, notes, and snippets.

@dpavlin
Created June 23, 2010 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dpavlin/450122 to your computer and use it in GitHub Desktop.
Save dpavlin/450122 to your computer and use it in GitHub Desktop.
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
Copy link
Author

dpavlin commented Jun 23, 2010

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