env = Environment(loader=PackageLoader('myproject', 'templates'))
myvar = 'S\xc3\xa9ptimo Cine'
index_variables = {'title': ''}
index_variables['title'] = myvar.decode('utf-8')
template = env.get_template('index.html')
with open('index_file.html', 'w') as index_file:
    output = template.render(index_variables)
index_file.write(output.encode('utf-8'))
Using utf-8 characters in a Jinja2 template