Prepare accented characters for HTML

Peter Otten __peter__ at web.de
Thu Mar 28 11:09:39 EDT 2019


Tony van der Hoff wrote:

> On 28/03/2019 12:46, Jon Ribbens wrote:
>> On 2019-03-28, Tony van der Hoff <lists at vanderhoff.org> wrote:
>>> Thanks, Chris. The problem is not with the browser, but Jinja crashes.
>>> Probably a bug, but I'm too wedded to that engine to change now. I'll
>>> raise it on the Jinja bug site.
>> 
>> It'll almost certainly be a mistake in the way you're using Jinja.
>> I can't believe nobody's used non-ASCII characters in Jinja before.
>> 
> 
> I'm open to suggestions.

You have to describe the "crash". If you can provide a small script to 
reproduce it that would be best. For demonstration purposes feed the 
renderer a constant string instead of reading from the db.

You should also tell us which version of Python and Jinja you are using.





More information about the Python-list mailing list