Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Problm with QTextEdit and accents

    General and Desktop
    qtextedit qt5.6 encoding
    1
    2
    925
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Alain38 0 last edited by

      Hi,
      I have written an application that request the opinion of the user on it. So, users can fill a QTextEdit to write their comments. The problem is that I am in France. So a lot of word contain accents. I have absolutely no problem to write text with accents in the QTextEdit. But whatever the method I use (toPlainText() or toHtml()), the resulting QString replace the accented characters by obscure characters. And I do not arrive to convert this to a right string.

      So, how can I do this?

      Thanks for your help.

      A 1 Reply Last reply Reply Quote 0
      • A
        Alain38 0 @Alain38 0 last edited by

        @Alain38 OK: It seems in fact that wat just a problem with the console. By sending the text to the URL (using QUrlQuery for encoding) I have the text with the accents.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post