Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Title block works with UTF8, but not with UTF8 with BOM #743

Closed
rric opened this issue Feb 8, 2013 · 2 comments
Closed

Title block works with UTF8, but not with UTF8 with BOM #743

rric opened this issue Feb 8, 2013 · 2 comments

Comments

@rric
Copy link

rric commented Feb 8, 2013

Seen with pandoc-1.10.1 under Win7:

Say I have a short document which starts with a title block, such as

% Working with UTF8
% Roland Richter
% February 2013
Working with UTF8 might be tedious, but it's not that hard.

When I invoke pandoc -f markdown -t latex -o file.tex file.txt on that, the following happens:

  • If the file was stored as UTF8 (no BOM), then everything goes fine; i.e. the title block is correctly interpreted, and converted into LaTeX source

  • If, however, the file was stored as UTF8 with BOM, the title block is not recognized. Instead, the LaTeX output looks like this:

    \begin{document}

     % Working with UTF8 % Roland Richter % February 2013 Working with
    UTF8 might be tedious, but it's not that hard.

    \end{document}

@jgm jgm closed this as completed in 3465ba2 Feb 8, 2013
@jgm
Copy link
Owner

jgm commented Feb 8, 2013

I think I've resolved this. Please test it with your UTF8/BOM
file and let me know.

+++ Roland [Feb 08 13 02:18 ]:

Seen with pandoc-1.10.1 under Win7:

Say I have a short document which starts with a tile block, such as
% Working with UTF8
% Roland Richter
% February 2013
Working with UTF8 might be tedious, but it's not that hard.

When I invoke pandoc -f markdown -t latex -o file.tex file.txt on that,
the following happens:
* If the file was stored as UTF8 (no BOM), then everything goes fine;
i.e. the title block is correctly interpreted, and converted into
LaTeX source
* If, however, the file was stored as UTF8 with BOM, the tile block
is not recognized. Instead, the LaTeX output looks like

\begin{document}
% Working with UTF8 % Roland Richter % February 2013 Working with
UTF8 might be tedious, but it's not that hard.

\end{document}

--
Reply to this email directly or [1]view it on GitHub.
[J6T91GIPIyhU-8ti4GCGP7AlC2fiocPKodp06RQqyLyhERA6xGMw_wztZns35FM7.gif]

References

  1. Title block works with UTF8, but not with UTF8 with BOM #743

@jgm
Copy link
Owner

jgm commented Feb 8, 2013

Or, if you can't easily install from source, upload a test
file I can use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants