qt5base-lts/examples/widgets/richtext/textedit
Giuseppe D'Angelo c29fac453f Markdown importer: use Unicode decoding
Given we feed UTF-8 data into the importer, it must be able to cope
with Unicode. Build md4c with UTF-8 support, advertise it at
usage site, and change a couple of broken decodings.

Driveby: the textedit example used the wrong codec to decode
a Markdown file. While the Markdown spec doesn't deal with encodings,
using the default one for HTML is certainly wrong. Port the loading
of both markdown and plaintext to UTF-8, as that what _saving_
via QTextDocumentWriter would use by default.

Change-Id: I51c6214cfe45ebfc5a67a7366f7866a5328366ec
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2020-02-03 14:58:00 +01:00
..
images TextEdit example: add indent/unindent feature 2019-05-06 19:24:32 +00:00
example.html preserve HTML heading level in QTextBlockFormat; demonstrate in example 2018-03-02 08:05:00 +00:00
example.md Render markdown task lists (checkboxes instead of bullets) in QTextEdit 2019-05-02 04:10:21 +00:00
main.cpp Prepare for deprecating the QDesktopWidget 2019-10-15 20:09:29 +02:00
textedit.cpp Markdown importer: use Unicode decoding 2020-02-03 14:58:00 +01:00
textedit.h TextEdit example: add indent/unindent feature 2019-05-06 19:24:32 +00:00
textedit.pro qtlite: Skip building examples when configured with no-feature-itemviews 2018-01-12 07:58:20 +00:00
textedit.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
textedit.qrc TextEdit example: add indent/unindent feature 2019-05-06 19:24:32 +00:00