Tony van der Hoff <li...@vanderhoff.org> writes: > I have a MariaDB database, which contains accented (mostly French) > characters. I need to display these on an HTML page. I'm using the Jinja > templating engine.
Why do you (still) need this? HTML is prepared to work all over the world - even in Asia where few characters are representable via ASCII and turning all non-ASCII characters into character references would be really tedious. An alternative would be to use the "utf-8" encoding when delivering your HTML pages. Then, there is no longer any need to use character references. -- https://mail.python.org/mailman/listinfo/python-list