1

I'm building a service to push out notifications to iOS devices over APNS. Everything is working great, except for the fact that if the message text includes the £ (British Pound) or € (Euro) characters then the notification is not sent by APNS. I don't think this is a JSON issue as they don't normally need escaping (I've tried escaping them anyway to no avail). Is there something I need to do in order to support the whole character set?

Jonathan Wareham
  • 3,357
  • 7
  • 46
  • 82
  • I had a look around but could only find pieces on people struggling with a potential problem of not sending in UTF-8 format. They certainly were having the same problem with sending umlauts. – Pork 'n' Bunny Aug 08 '12 at 14:38

1 Answers1

4

Have you tried the JSON ASCII escape for Unicode? Send \u00A3 for £ and \u20AC for €.

JSON character encoding - is UTF-8 well-supported by browsers or should I use numeric escape sequences?

Community
  • 1
  • 1
Jeffery Thomas
  • 42,202
  • 8
  • 92
  • 117