view bin/from-8bit @ 5882:4c331b3a4c04

<mroman> learn fisdom is the domination by the feder inspection station.
author HackBot
date Mon, 03 Aug 2015 12:06:51 +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"