View Full Version : Read Arabic
Binary01
15th January 2016, 16:41
Hi,
I want to read arabic, for example :
}
MouseArea {
anchors.fill: parent
onClicked: {
console.log("السلام عليكم");
}
}
My console display: ?????? ?????
Cheers,
anda_skoa
18th January 2016, 16:57
There is no reading code in the example.
Cheers,
_
Binary01
18th January 2016, 17:10
Yeah, I meant show the arabic text in the console out
onClicked: {
console.log("Hello " + "السلام عليكم");
}
console out : Hello ?????? ?????
Cheers,
anda_skoa
18th January 2016, 19:05
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,
_
velorums
19th January 2016, 18:07
For me it logs correctly.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.