khajavi / pandoc

Automatically exported from code.google.com/p/pandoc
GNU General Public License v2.0
0 stars 0 forks source link

Custom template variables are not being treated as unicode #234

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Let a custom template 'template.test' be "$teste$".
2. Give an unicode string to that custom variable:

$ pandoc -V teste="ãtṣātα" --template template.teste
ãtá¹£Ätα

What is the expected output? What do you see instead?

The output should look like the input. As it is now, it seems to be
converted as if it were from latin1 to utf-8:

$ echo "ãtṣātα" | iconv -f latin1 -t utf-8
ãtá¹£Ätα

What version of the product are you using? On what operating system?

$ uname -a
Linux mnesala 2.6.30-2-686 #1 SMP Fri Dec 4 00:53:20 UTC 2009 i686 GNU/Linux

$ echo $LANG
en_US.UTF-8

$ pandoc -v
pandoc 1.5.1.1

Original issue reported on code.google.com by bike...@gmail.com on 4 May 2010 at 6:06

GoogleCodeExporter commented 9 years ago
Resolved, I believe, in f20c4ae928a41cb83455f11dba67ea51dfe27f3e
Thanks for the bug report.

Original comment by fiddloso...@gmail.com on 5 May 2010 at 6:37

GoogleCodeExporter commented 9 years ago
thanks for the quick response : ).

Original comment by bike...@gmail.com on 5 May 2010 at 6:46