view bin/from-8bit @ 5459:12e3ce70ec23

<oren> le/rn tar/The command you\'re looking for is probably either tar -xavkf or tar -cavf
author HackBot
date Sun, 07 Jun 2015 06:10:00 +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"