Important: Please read the Qt Code of Conduct -

How can I input unicode characters in Qt Linguist?

  • 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?

  • 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.

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

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

Log in to reply