summaryrefslogtreecommitdiff
path: root/doc/html-to-text
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html-to-text')
-rwxr-xr-xdoc/html-to-text7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/html-to-text b/doc/html-to-text
index c8428d7f..7c7956f8 100755
--- a/doc/html-to-text
+++ b/doc/html-to-text
@@ -1,6 +1,11 @@
#!/bin/bash
#
+# Usage: html-to-text input encoding
+#
# This is just a layer of indirection so the html-to-text utility can
# be changed in a central location.
-exec elinks -dump -no-references -no-numbering "$@"
+in="$1"
+encoding=$2
+
+exec elinks -dump -dump-charset $encoding -no-references -no-numbering "$in"