I've been working with an SMS aggregator's web api to send and receive text messages. Not all characters are valid, and when I attempt to send a message with, say, a hash mark # it fails.
I need to clean the strings before I send them but I cannot find a valid list of what characters are good. Mr. Google isn't much help - maybe i'm looking for the wrong terms.
I have already scoured the api manual, and have emailed the company with my question, but there are no answers.
I expect that different phones can handle different lists of characters... eg an iPhone should handle a wide range of characters, but my old nokia flip phone will probably only handle a couple dozen characters beyond the alphanumeric. I'll need the lowest common denominator.
This depends on your aggregator. Default sms charset is limited to latin and some special letters only (including hash mark), others are sent in unicode or using locking shift table mechanism. But you are using an api to send messages, so all these things are incapsulated. I suggest continuing asking your aggregator for help, probably they block some characters manually.
This is built entirely off of @vissi's answer, but this is something you should be able to plug in if you want to build a small collection into your application for verification purposes.