Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-68807

QTextEdit html doesn't create valid HTML with accents

    XMLWordPrintable

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: á, Á, é, É, í, Í, ó, Ó, ú, Ú, ñ, Ñ, ö, ü

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            lqsa lqsa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes