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. tr() and translated version of sourceText
Forum Updated to NodeBB v4.3 + New Features

tr() and translated version of sourceText

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 918 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.
  • O Offline
    O Offline
    ozzy
    wrote on last edited by
    #1

    i learn qt from document example.
    link text

    why tr("\302\261") stand for +-
    Is there anything like ascii that i can search for!

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      That's not ASCII. That's UTF-8. \302\261 is a C's octal escape sequence. \302 octal is 0xC2 in hex and \261 is 0xB1 hex, so it's a 2-byte UTF-8 sequence C2B1 mapped to "plus-minus sign".
      You can use any unicode table to look it up, for example http://graphemica.com/%C2%B1.

      O 1 Reply Last reply
      3
      • Chris KawaC Chris Kawa

        That's not ASCII. That's UTF-8. \302\261 is a C's octal escape sequence. \302 octal is 0xC2 in hex and \261 is 0xB1 hex, so it's a 2-byte UTF-8 sequence C2B1 mapped to "plus-minus sign".
        You can use any unicode table to look it up, for example http://graphemica.com/%C2%B1.

        O Offline
        O Offline
        ozzy
        wrote on last edited by
        #3

        @Chris-Kawa Thank you, that's exactly what i'm looking for!

        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