Hi,
I want to read arabic, for example :
Qt Code:
} MouseArea { anchors.fill: parent onClicked: { console.log("السلام عليكم"); } }To copy to clipboard, switch view to plain text mode
My console display: ?????? ?????
Cheers,
Hi,
I want to read arabic, for example :
Qt Code:
} MouseArea { anchors.fill: parent onClicked: { console.log("السلام عليكم"); } }To copy to clipboard, switch view to plain text mode
My console display: ?????? ?????
Cheers,
There is no reading code in the example.
Cheers,
_
Yeah, I meant show the arabic text in the console out
Qt Code:
onClicked: { console.log("Hello " + "السلام عليكم"); }To copy to clipboard, switch view to plain text mode
console out : Hello ?????? ?????
Cheers,
I am not sure console.log() can do that, it is a logging facility, not a generic console output facility.
Or your terminal is not confiigured with a font that can how these glyphs.
Have you tried using QString::toLocal8Bit() and std::cout in C++?
Cheers,
_
For me it logs correctly.
Bookmarks