Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. spanish characters from html plain text to QTextEdit widget

spanish characters from html plain text to QTextEdit widget

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 182 Views
  • 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.
  • U Offline
    U Offline
    U7Development
    wrote on last edited by
    #1

    Hi!..
    i'm currently working on a word processor, its main language is spanish, so end user will use special characters as well..
    While testing my program and composing text, special spanish characters works fine on QTextEdit, then when i save it, internally convert to plain html and save it to a hard disk file. The problem presents when i invert the procedure, i open the file, extract the content from file into the QTextEdit widget and everything shows fine except the special characters that are showing with interrotation sign...

    I think i need to import as UTF8 Unicode or something like that...
    how to fix it?
    thanks.

    jsulmJ 1 Reply Last reply
    0
    • U U7Development

      Hi!..
      i'm currently working on a word processor, its main language is spanish, so end user will use special characters as well..
      While testing my program and composing text, special spanish characters works fine on QTextEdit, then when i save it, internally convert to plain html and save it to a hard disk file. The problem presents when i invert the procedure, i open the file, extract the content from file into the QTextEdit widget and everything shows fine except the special characters that are showing with interrotation sign...

      I think i need to import as UTF8 Unicode or something like that...
      how to fix it?
      thanks.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @U7Development said in spanish characters from html plain text to QTextEdit widget:

      I think i need to import as UTF8 Unicode or something like that

      Yes, you need to store the text as Unicode (for example UTF-8) and also read it as unicode. So, how do you write the text into a file and how do you read it back?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved