Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QProcess and Unicode Commands
patbangert last edited by
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?
perl.start("perl -CSDA convert.pl "ཨོཾ་ཨཿ"");
This is actually executed as "perl -CSDA convert.pl "???"".
april14 last edited by
@patbangert Hi, I am having the same issue. Have you got any solution/workaround.
Thanks in advance.
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.