Created
June 23, 2010 15:57
-
-
Save dpavlin/450122 to your computer and use it in GitHub Desktop.
Dump all variations of Croatian 8-bit encodings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example usage: