mcmillab
mcmillab

Reputation: 2804

AWS SQS valid characters

Some messages I send via SQS come back with this error:

Amazon.SQS.AmazonSQSException: Invalid binary character '#x1' was found in the message body, the set of allowed characters is #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]

What do these codes actually mean? Obviously they are unicode codes, but any google search I've done comes up with formats slightly different to these ("#x"), and I'm struggling to understand them.

Upvotes: 1

Views: 3197

Answers (1)

adamw
adamw

Reputation: 8606

These are hexadecimal unicode ranges, just written a bit differently. #x9 is usually written as 0x9, #xE000 is 0xE0000

You can preview what the characters are e.g. here, using the traditional notation (0x9): http://www.fileformat.info/info/unicode/char/search.htm

Upvotes: 6

Related Questions