Use iconv on output as well as input in wrapper scripts.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@58 788f1e2b-df1e-0410-8736-df70ead52e1b
commita4a2792dc11df1a5d2b523261de09118ca8e5262
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>
dateWed 1 Nov 2006, 06:33 (20 years ago)
parentb8d960d
html2markdown+2−2
@@ -12,7 +12,7 @@
1212}
1313
1414if [ -z "$1" ] || [ -f $1 ]; then
15− tidy -utf8 $1 2>/dev/null | pandoc -r html -w markdown -s
15+ tidy -utf8 $1 2>/dev/null | pandoc -r html -w markdown -s | iconv -f utf-8
1616else
1717 # Treat given argument as an URL. Locate a
1818 # sensible text based browser (note the order).
@@ -35,5 +35,5 @@ else
3535 exit 1 ;;
3636 esac
3737 # Fetch and feed to pandoc.
38− $DUMPER $OPT $1 2>/dev/null | tidy -utf8 2>/dev/null | pandoc -r html -w markdown -s
38+ $DUMPER $OPT $1 2>/dev/null | tidy -utf8 2>/dev/null | pandoc -r html -w markdown -s | iconv -f utf-8
3939fi
latex2markdown+1−1
@@ -4,4 +4,4 @@
44 echo >&2 "You need 'pandoc' to use this program!"
55 exit 1
66}
7−iconv -t utf-8 $* | pandoc -r latex -w markdown -s
7+iconv -t utf-8 $* | pandoc -r latex -w markdown -s | iconv -f utf-8
markdown2html+1−1
@@ -4,4 +4,4 @@
44 echo >&2 "You need 'pandoc' to use this program!"
55 exit 1
66}
7−iconv -t utf-8 $* | pandoc
7+iconv -t utf-8 $* | pandoc | iconv -f utf-8
markdown2latex+1−1
@@ -4,4 +4,4 @@
44 echo >&2 "You need 'pandoc' to use this program!"
55 exit 1
66}
7−iconv -t utf-8 $* | pandoc -w latex -s
7+iconv -t utf-8 $* | pandoc -w latex -s | iconv -f utf-8
markdown2pdf+1−1
@@ -58,7 +58,7 @@ TEMP=${TMPDIR-/tmp}/markdown2pdf.$$
5858trap "status=$?; rm -rf $TEMP; exit $status" 0 INT
5959mkdir -p $TEMP
6060
61−iconv -t utf-8 $infile | pandoc -w latex -s > $TEMP/$BASE.tex
61+iconv -t utf-8 $infile | pandoc -w latex -s | iconv -f utf-8 > $TEMP/$BASE.tex
6262(
6363 cd $TEMP
6464 if ! pdflatex -interaction=batchmode $BASE.tex >/dev/null 2>&1; then