Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How can I input unicode characters in Qt Linguist?
Forum Updated to NodeBB v4.3 + New Features

How can I input unicode characters in Qt Linguist?

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 2 Posters 4.8k 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.
  • C Offline
    C Offline
    coldmund
    wrote on last edited by
    #1

    when i input '\n', '\x000A' or '\u000A' in Qt Linguist, it appears as string(for example, "My name is \n Hong"), not control character.
    how can i input control characters in Qt Linguist?

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      Just press the return key, linguist inserts the newline automatically. For other unicode characters: Just type them. The .ts file is UTF-8 XML - you do not need to enter that special chars in C/C++ escaping mode.

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • C Offline
        C Offline
        coldmund
        wrote on last edited by
        #3

        Thank you, Volker. It works.
        Now I wonder why didn't I tried such a simple way.

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #4

          We're developers and think like those - and not always the straight way :-)

          http://www.catb.org/~esr/faqs/smart-questions.html

          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