Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    Solved How to convert persian encode to decimal value?

    Qt in Education
    2
    2
    1320
    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.
    • MhM93
      MhM93 last edited by SGaist

      Hi. I write a program for mini2440. I want to convert a Unicode Persian character to its decimal value in c++. exactly like this website: https://www.branah.com/ascii-converter.
      for example for character 'ف' it returns 1601 decimal value.

      H.Ghassami

      1 Reply Last reply Reply Quote 0
      • JohanSolo
        JohanSolo last edited by

        I think that starting from a QString, you can use QChar::unicode() method to do the trick.

        `They did not know it was impossible, so they did it.'
        -- Mark Twain

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