view bin/from-8bit @ 6291:f0abe1320ff3

<tswett> echo \'There is a way out. Finding it will be difficult. It may be the hardest thing you\'\\\'\'ve ever done. Find it anyway.\' > good/544
author HackBot
date Fri, 27 Nov 2015 01:45:53 +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"