PushNotification App42API did not support UTF-8 characters,

0 votes

  API did not support UTF-8 characters, 
i try to send some of arabic in the massege characters and this error happent but the english massge sended 

help me plz

  1. pp42Fault{httpErrorCode:401, appErrorCode:1401, message:UnAuthorized Access, details:Client is not authorized}
    1. appErrorCode1401
    2. details"Client is not authorized"
    3. httpErrorCode401
    4. message"UnAuthorized Access"

asked Mar 30, 2014 in App42 Cloud API-BaaS by mo3tssem91 (15 points)

2 Answers

0 votes
Best answer
You have to just put dataEncoding header to true in setOtherMetaHeaders method availble in PushNotificationService class before calling sendMessage method.

Let me know which language/platform you are working on, I will give you snippet for the same.
answered Mar 30, 2014 by ajay123 (899 points)
selected Apr 2, 2014 by mo3tssem91
i used java script  , now i need it to send notification to phonephone app insulted in android and ios
This was updated in our new release.
Please download from here:

Add these lines just before your send method.
var headers = {dataEncoding:true};
thanks that work with me :)
0 votes
For languages other than english, you need to set otherMetaHeaders as follows:

NSMutableDictionary *dict = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"true",@"dataEncoding", nil];

[pushNotificationService setOtherMetaHeaders:dict];

PushNotification *pushNotification = [pushNotificationService sendPushMessageToUser:userName message:message];
answered Mar 30, 2014 by rajeev.etc (1,660 points)
i don't understand this programming language, you uses
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com