public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* UTF-8 encoding error using Pandoc filters
@ 2019-08-20  0:41 Isai Emanuel Davila Cuba
       [not found] ` <a8434473-c231-46bd-9c1a-c8b5e942c774-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Isai Emanuel Davila Cuba @ 2019-08-20  0:41 UTC (permalink / raw)
  To: pandoc-discuss


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

Hi, guys. I have been having problems when using Pandoc for convert a 
Markdown file to PDF. The problem is when using pandoc-eqnos filter. I 
typed in command line:
pandoc --filter=pandoc-eqnos file.md -o file.pdf
And get this error message:
File "C:\Users\Isaí 
Dávila\AppData\Local\Programs\Python\Python37-32\Scripts\pandoc-eqnos-script.py", 
line 1
SyntaxError: Non-UTF-8 code starting with '\xed' in file C:\Users\Isaí 
Dávila\AppData\Local\Programs\Python\Python37-32\Scripts\pandoc-eqnos-script.py 
on line 1, but no encoding declared; see 
http://python.org/dev/peps/pep-0263/ for details
Error running filter pandoc-eqnos:
Filter returned error status 1

I have no experience with UTF-8 related erros, so any suggestion will be 
appreciated. Thanks.

-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/a8434473-c231-46bd-9c1a-c8b5e942c774%40googlegroups.com.

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

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

* Re: UTF-8 encoding error using Pandoc filters
       [not found] ` <a8434473-c231-46bd-9c1a-c8b5e942c774-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2019-08-20  0:51   ` Isai Emanuel Davila Cuba
  0 siblings, 0 replies; 2+ messages in thread
From: Isai Emanuel Davila Cuba @ 2019-08-20  0:51 UTC (permalink / raw)
  To: pandoc-discuss


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

The "error" was solved. Just had to add
#-*- coding:utf-8 -*-

to *pandoc-eqnos-script.py *on top. 

El lunes, 19 de agosto de 2019, 21:41:45 (UTC-3), Isai Emanuel Davila Cuba 
escribió:
>
> Hi, guys. I have been having problems when using Pandoc for convert a 
> Markdown file to PDF. The problem is when using pandoc-eqnos filter. I 
> typed in command line:
> pandoc --filter=pandoc-eqnos file.md -o file.pdf
> And get this error message:
> File "C:\Users\Isaí 
> Dávila\AppData\Local\Programs\Python\Python37-32\Scripts\pandoc-eqnos-script.py", 
> line 1
> SyntaxError: Non-UTF-8 code starting with '\xed' in file C:\Users\Isaí 
> Dávila\AppData\Local\Programs\Python\Python37-32\Scripts\pandoc-eqnos-script.py 
> on line 1, but no encoding declared; see 
> http://python.org/dev/peps/pep-0263/ for details
> Error running filter pandoc-eqnos:
> Filter returned error status 1
>
> I have no experience with UTF-8 related erros, so any suggestion will be 
> appreciated. Thanks.
>
>

-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/472ad3f9-6da7-4bd4-94d7-2993f104a81a%40googlegroups.com.

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

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

end of thread, other threads:[~2019-08-20  0:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-20  0:41 UTF-8 encoding error using Pandoc filters Isai Emanuel Davila Cuba
     [not found] ` <a8434473-c231-46bd-9c1a-c8b5e942c774-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-08-20  0:51   ` Isai Emanuel Davila Cuba

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).