I am sending a GCM from my C# server using "application/json" (Downstream HTTP messages (JSON)). Everything works well, my Android devices receive the message.
But the problem is: If I send special characters like ä ë á é or similar then I get this error:
WebException: System.Net.WebException: The request was aborted: The request was canceled. ---> System.IO.IOException: Cannot close stream until all bytes are written.
I tried using:
HttpUtility.UrlEncode("my méssägë hérë")
but then I receive the messages in Android in the wrong format. Any help how to encode the strings correctly?