aboutsummaryrefslogtreecommitdiff
path: root/html2markdown
diff options
context:
space:
mode:
Diffstat (limited to 'html2markdown')
-rw-r--r--html2markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/html2markdown b/html2markdown
index 931c74b74..8bae3a3bf 100644
--- a/html2markdown
+++ b/html2markdown
@@ -12,7 +12,7 @@
}
if [ -z "$1" ] || [ -f $1 ]; then
- tidy -utf8 $1 2>/dev/null | pandoc -r html -w markdown -s
+ tidy -utf8 $1 2>/dev/null | pandoc -r html -w markdown -s | iconv -f utf-8
else
# Treat given argument as an URL. Locate a
# sensible text based browser (note the order).
@@ -35,5 +35,5 @@ else
exit 1 ;;
esac
# Fetch and feed to pandoc.
- $DUMPER $OPT $1 2>/dev/null | tidy -utf8 2>/dev/null | pandoc -r html -w markdown -s
+ $DUMPER $OPT $1 2>/dev/null | tidy -utf8 2>/dev/null | pandoc -r html -w markdown -s | iconv -f utf-8
fi