diff bin/from-8bit @ 4531:7f957c1f4661

<oerjan> revert
author HackBot
date Sun, 16 Mar 2014 01:52:15 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/from-8bit	Sun Mar 16 01:52:15 2014 +0000
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+enc=$(echo "$1" | iconv -t iso8859-1 | chardet | awk '{print $2}')
+echo "$1" | iconv -t iso8859-1 | iconv -f "$enc"