Twilio sms Arabic letters appears as question marks

When trying to send an SMS message in Arabic, using Twilio sdk version is 7.43.1 a question marks arrives to the logs and mobile meanwhile if I send the sms using the API the message arrives correctly. What is the problem here

MessageCreator messageCreator = Message.creator( new com.twilio.type.PhoneNumber(phone), messageServiceId,"مرحبا"); 
Add Comment
1 Answer(s)

Upgrading the apache org.apache.httpcomponents to 4.5.x was the solution since apache 4.4.x has an encoding bug

Answered on July 16, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.