N
Nikola Skoric
When I execute
nick@rilmir:~/code/simplepyged/docs/examples$ python latex.py
I get expected output (bunch of latex markup).
But, when I add a redirection, I get:
nick@rilmir:~/code/simplepyged/docs/examples$ python latex.py > foo.tex
File "latex.py", line 87, in <module>
print mytemplate.render_unicode(stack=stack, index=latex_index(stack), pages=pages)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 625: ordinal not in range(128)
Now, how does python even know I added a redirection?! And then... why
would it care?
Code of latex.py can be seen here:
http://github.com/dijxtra/simplepyg...20b502e5af71d78ed55bf0/docs/examples/latex.py
nick@rilmir:~/code/simplepyged/docs/examples$ python latex.py
I get expected output (bunch of latex markup).
But, when I add a redirection, I get:
nick@rilmir:~/code/simplepyged/docs/examples$ python latex.py > foo.tex
File "latex.py", line 87, in <module>
print mytemplate.render_unicode(stack=stack, index=latex_index(stack), pages=pages)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 625: ordinal not in range(128)
Now, how does python even know I added a redirection?! And then... why
would it care?
Code of latex.py can be seen here:
http://github.com/dijxtra/simplepyg...20b502e5af71d78ed55bf0/docs/examples/latex.py