Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Learning
  3. Qt in Education
  4. How to convert persian encode to decimal value?
QtWS25 Last Chance

How to convert persian encode to decimal value?

Scheduled Pinned Locked Moved Solved Qt in Education
2 Posts 2 Posters 1.5k 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.
  • MhM93M Offline
    MhM93M Offline
    MhM93
    wrote on last edited by SGaist
    #1

    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
    0
    • JohanSoloJ Offline
      JohanSoloJ Offline
      JohanSolo
      wrote on last edited by
      #2

      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
      1

      • Login

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