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. How to decode QString containing Unicode escape sequences?
Qt 6.11 is out! See what's new in the release blog

How to decode QString containing Unicode escape sequences?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 955 Views 1 Watching
  • 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.
  • Z Offline
    Z Offline
    Zingam
    wrote on last edited by Zingam
    #1

    I'd like to read the text() of QLineEdit that could contain characters encoded as Unicode escape sequences.
    Example: "Faction name: \u2662 \u8f1d \u2662". That I want to decode and display as proper characters in a QLabel.

    Is there an easy way to do it with standard Qt functions?
    Well also other alternatives would be interesting too: C++ and Python.

    1 Reply Last reply
    0

    • Login

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