Solved (Solved)QString print strange value
-
I am trying to print the QString using qDebug() but I am getting strange value printed.
QString c = QString("command"); qDebug()<<c;
Which print
"\u200Bcommand"
on the console, what could be the reason.
-
Do u have only this qdebug in your qt program ? Check this print is coming from previous qdebug. Which platform?
-
@haris123 I would delete the "command" string in the editor and enter it again. You probably entered a Unicode character accidentally (\u200 is something like a space as far as I know).
-
@haris123 @jsulm is right,
\u200B
is Unicode Character 'ZERO WIDTH SPACE' so it's probably not displayed in QtCreator. -
Yes in that case it's work when I delete the string and type again, thanks for the feedback.