Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    How to decode QString containing Unicode escape sequences?

    General and Desktop
    1
    1
    644
    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.
    • Z
      Zingam last edited by Zingam

      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 Reply Quote 0
      • First post
        Last post