Skip to content

Instantly share code, notes, and snippets.

@helix84
Created January 12, 2016 13:26
Show Gist options
  • Save helix84/9bdcd9b415e350759513 to your computer and use it in GitHub Desktop.
Save helix84/9bdcd9b415e350759513 to your computer and use it in GitHub Desktop.
# this list is not exhaustive
sed \
-e 's/\\u00c4\\u00be/ľ/g' \
-e 's/\\u00c5\\u00a1/š/g' \
-e 's/\\u00c4\\u008d/č/g' \
-e 's/\\u00c5\\u00a5/ť/g' \
-e 's/\\u00c3\\u00a4/ť/g' \
-e 's/\\u00c5\\u00be/ž/g' \
-e 's/\\u00c3\\u00bd/ý/g' \
-e 's/\\u00c3\\u00a1/á/g' \
-e 's/\\u00c3\\u00ad/í/g' \
-e 's/\\u00c3\\u00b4/ô/g' \
-e 's/\\u00c3\\u00a9/é/g' \
-e 's/\\u00c3\\u00ba/ú/g' \
-e 's/\\u00c3\\u00a1/á/g' \
-e 's/\\u00c3\\u00ad/í/g' \
-e 's/\\u00c3\\u00bd/ý/g' \
-e 's/\\u00c4\\u008f/ď/g' \
-e 's/\\u00c3\\u00b3/ó/g' \
-e 's/\\u00c3\\u00ba/ú/g' \
-e 's/\\u00c5\\u0088/ň/g' \
-e 's/\\u00c4\\u00ba/ĺ/g' \
-e 's/\\u00c5\\u00a0/Š/g' \
-e 's/\\u00c3\\u009a/Ú/g' \
-e 's/\\u00c4\\u008c/Č/g' \
-e 's/\\u00c3\\u0081/Á/g' \
-e 's/\\u00c4\\u008e/Ď/g' \
-e 's/\\u00c4\\u00bd/Ľ/g' \
-e 's/\\u00c3\\u0089/É/g' \
-e 's/\\u00c2\\u00a9/©/g' \
-e 's/\\u00c5\\u00bd/Ž/g' \
-e 's/\\u00e2\\u0080\\u009e/„/g' \
-e 's/\\u00e2\\u0080\\u009c/“/g' \
source_file > target_file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment