view bin/from-8bit @ 4651:8d5d1b1d8a5a

<shachaf> ln -s unidecode bin/icode
author HackBot
date Fri, 06 Jun 2014 08:32:34 +0000
parents 7f957c1f4661
children
line wrap: on
line source

#!/bin/bash

enc=$(echo "$1" | iconv -t iso8859-1 | chardet | awk '{print $2}')
echo "$1" | iconv -t iso8859-1 | iconv -f "$enc"