title: Apple Push Notification Hebrew
body: <p>I am using Apns-PHP for sending push notification to IOS devices, below is the link of open source code which I have applied.</p>
  
  <p><strong><a href="http://code.google.com/p/apns-php" rel="nofollow noreferrer">http://code.google.com/p/apns-php</a></strong></p>
  
  <p>It is working fine for English text messages however, for Hebrew text message sometimes its send null as text message.
  To overcome with it, I have applied solution suggested by the following link.</p>
  
  <p><strong><a href="https://stackoverflow.com/a/10936493/1928421">https://stackoverflow.com/a/10936493/1928421</a></strong></p>
  
  <p>As per the above link I have replaced my payload function with the given method, now I some text message is coming in push message but it seems like they are formatted with UTF8.</p>
  
  <p>Here is the actual Hebrew text that I am passing to Apns.</p>
  
  <p><strong>"האילנית לזון זקוק לעזרה כדי לקחת מ גבעה ל ת"</strong></p>
  
  <p>And this the dictionary which is getting created by the script.</p>
  
  <pre><code>[aps] =&gt; Array (
    [alert] =&gt; Array (
      [body] =&gt; "\u05d4\u05d0\u05d9\u05dc\u05e0\u05d9\u05ea \u05dc\u05d6\u05d5\u05df \u05d6\u05e7\u05d5\u05e7 \u05dc\u05e2\u05d6\u05e8\u05d4 \u05db\u05d3\u05d9 " 
    ) 
    [badge] =&gt; 3
  )
  </code></pre>
  
  <p>on device hand for the alert key I am receiving following text only.</p>
  
  <pre><code>"\u05d4\u05d0\u05d9\u05dc\u05e0\u05d9\u05ea \u05dc\u05d6\u05d5\u05df \u05d6\u05e7\u05d5\u05e7 \u05dc\u05e2\u05d6\u05e8\u05d4 \u05db\u05d3\u05d9 "
  </code></pre>
  
  <p>Any comment or suggestion is highly appreciated.</p>