Open emilopez opened 7 years ago
I have partially solved adding .encode('utf-8') to some attributes inside the _produce_output() function. Now the only problem is with the author name. I didn't find the correct place to add the .encode('utf-8') method.
` def _produce_output(self):
self.title = self.parts['title'].encode('utf-8')
self._analyse_metainfo()
header = self._generate_header().encode('utf-8')
body = self._generate_body().encode('utf-8')
footer = self._generate_footer().encode('utf-8')`
Dear, I have problems trying to use any char with accents. The following error appear:
File "/usr/local/bin/rst2reveal", line 4, in
import('pkg_resources').run_script('rst2reveal==0.0.2', 'rst2reveal')
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 742, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 1503, in run_script
exec(code, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/rst2reveal-0.0.2-py2.7.egg/EGG-INFO/scripts/rst2reveal", line 285, in
parser.create_slides()
File "/usr/local/lib/python2.7/dist-packages/rst2reveal-0.0.2-py2.7.egg/rst2reveal/Parser.py", line 132, in create_slides
self._produce_output()
File "/usr/local/lib/python2.7/dist-packages/rst2reveal-0.0.2-py2.7.egg/rst2reveal/Parser.py", line 167, in _produce_output
self._analyse_metainfo()
File "/usr/local/lib/python2.7/dist-packages/rst2reveal-0.0.2-py2.7.egg/rst2reveal/Parser.py", line 218, in _analyse_metainfo
self._generate_titleslide()
File "/usr/local/lib/python2.7/dist-packages/rst2reveal-0.0.2-py2.7.egg/rst2reveal/Parser.py", line 258, in _generate_titleslide