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. QProcess and Unicode Commands
Qt 6.11 is out! See what's new in the release blog

QProcess and Unicode Commands

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 1.9k Views 2 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.
  • P Offline
    P Offline
    patbangert
    wrote on last edited by
    #1

    Hi all,
    My Qt Application has a QProcess that I want to use to execute a command that includes some unicode characters. Unfortunately, these unicode characters seem to get replaced by question marks before the command is executed. What can I do?

    Example:
    QProcess perl;
    perl.start("perl -CSDA convert.pl "ཨོཾ་ཨཿ"");

    This is actually executed as "perl -CSDA convert.pl "???"".

    Thank you!
    Best, Patrick

    A 1 Reply Last reply
    0
    • P patbangert

      Hi all,
      My Qt Application has a QProcess that I want to use to execute a command that includes some unicode characters. Unfortunately, these unicode characters seem to get replaced by question marks before the command is executed. What can I do?

      Example:
      QProcess perl;
      perl.start("perl -CSDA convert.pl "ཨོཾ་ཨཿ"");

      This is actually executed as "perl -CSDA convert.pl "???"".

      Thank you!
      Best, Patrick

      A Offline
      A Offline
      april14
      wrote on last edited by
      #2

      @patbangert Hi, I am having the same issue. Have you got any solution/workaround.
      Thanks in advance.

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

        What platform are you on? QProcess passes the arguments in a platform specific way. It's UTF-16 on Windows and (usually but not always) UTF-8 on linux. You need to make sure the perl script treats them the same.

        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