send an arabic sms via Qt.openUrlExternally ("sms:? body =" + arabic text)
Hi,
I tried to send an arabic sms via Qt.openUrlExternally ("sms:? body =" + arabicText), the mail box opens with a text whose characters are ilisible, the text in Arabic does not display.
If you have an idea or solution to this problem please help me I will be very grateful.
Re: send an arabic sms via Qt.openUrlExternally ("sms:? body =" + arabic text)
What excatly is being seen in the other end ? Could you also make an application which reads the message to see what kind of chanarcters would be in there?
Note that normal SMS messages are sent with 7-bits-character encoding, and all characters which are not defined are changed to be question marks.
Re: send an arabic sms via Qt.openUrlExternally ("sms:? body =" + arabic text)
Hello khadijarss,
If your arabic message is device generated, then it should not create any problem as it automatically saves UTF8 formated text in Qstring.
If you are initiallizing that text by yourself, then please convert the text to ANSI format and then initialize the variable. It will work fine.
Re: send an arabic sms via Qt.openUrlExternally ("sms:? body =" + arabic text)
Hi,
thank you very much for your response. i initialize the body of SMS in QML with the code bellow :
Button {
anchors.centerIn: parent
text: qsTr("Arabic SMS!")
font.pixelSize: 20
onClicked: {
var chaine="السلام"
Qt.openUrlExternally("sms:?body="+chaine)
}
}
Thanks in advance for your help
Best regards
Khadija