LoginSignup
4
4

More than 5 years have passed since last update.

texからmd/rstを作る時に出たエラー

Last updated at Posted at 2015-09-05

はじめに

とある学会の予稿をtexで書き、内容的に個人的な技報(Sphinxで作ってる)にマージしようとしたら、以下の様なエラーが表示された。

$ pandoc main.tex -o main.md
pandoc: Cannot decode byte '\xbb': Data.Text.Internal.Encoding.Fusion.streamUtf8: Invalid UTF-8 stream

ファイルは、utf-8で書いたんだけどな・・・・。

対処

$ iconv -t utf-8 main.tex| pandoc | iconv -f utf-8
$ pandoc main.tex -o main.md
4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4