public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* German ß to epub
@ 2018-12-26 22:11 'Andreas Lenhardt' via pandoc-discuss
       [not found] ` <fc38c330-1f67-4820-9972-d002d7095048-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: 'Andreas Lenhardt' via pandoc-discuss @ 2018-12-26 22:11 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 784 bytes --]

I tried to make an epub ebook from a txt file, but it gives an error:

pandoc: Cannot decode byte '\xdf': Data.Text.Internal.Encoding.decodeUtf8: 
Invalid UTF-8 stream

Any ideas how to solve this?

Regards
Andi

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/fc38c330-1f67-4820-9972-d002d7095048%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 1300 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: German ß to epub
       [not found] ` <fc38c330-1f67-4820-9972-d002d7095048-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2018-12-27 10:14   ` Tobias Klausmann
  0 siblings, 0 replies; 2+ messages in thread
From: Tobias Klausmann @ 2018-12-27 10:14 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Hi! 

On Wed, 26 Dec 2018, 'Andreas Lenhardt' via pandoc-discuss wrote:
> I tried to make an epub ebook from a txt file, but it gives an error:
> 
> pandoc: Cannot decode byte '\xdf': Data.Text.Internal.Encoding.decodeUtf8: 
> Invalid UTF-8 stream
> 
> Any ideas how to solve this?

The input file is not encoded as UTF-8 (what Pandoc expects) but
more likely ISO 8859-1 aka Latin-1. If you are on Linux, the
"recode" tool can convert the file like so:

  recode latin1..utf8 file.txt

Note that recode works in-place, that is, the file is changed,
and it doesn't make backups. More info can be found using "man
recode".

Another option is to use an editor that can load/save specific
encodings, like vim.

Hope this helps,
Tobias


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-12-27 10:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-26 22:11 German ß to epub 'Andreas Lenhardt' via pandoc-discuss
     [not found] ` <fc38c330-1f67-4820-9972-d002d7095048-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-12-27 10:14   ` Tobias Klausmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).