Prepare accented characters for HTML
dieter
dieter at handshake.de
Fri Mar 29 02:17:31 EDT 2019
Tony van der Hoff <lists at 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.
More information about the Python-list
mailing list