Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.10.1
-
None
-
QT 5.10
Description
If an accent is entered in a QTextEdit, the html method doesn't produce the correct HTML output (with & acute).
Exemple:
The user enters this:
Vamos: á, Á, é, É, í, Í, ó, Ó, ú, Ú, ñ, Ñ, ö, ü
The html output is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Vamos: á, Á, é, É, í, Í, ó, Ó, ú, Ú, ñ, Ñ, ö, ü</p></body></html>
You can see than the accents are maintained in the html code
So, if you open this in a browser, the accents doesn't appear correctly:
Vamos: á, Ã, é, É, Ã, Ã, ó, Ó, ú, Ú, ñ, Ñ, ö, ü