[rabbitmq-discuss] Unicode Characters In AMQP Headers?
Chris Chew
chrisch at ecollege.com
Wed Nov 9 16:04:13 GMT 2011
> From: rabbitmq-discuss-bounces at lists.rabbitmq.com [rabbitmq-discuss-bounces at lists.rabbitmq.com] on behalf of > > Simon MacMullen [simon at rabbitmq.com]
>
> On 09/11/11 01:19, Alexandru Scvorţov wrote:
> > The headers, queue names and exchange names are treated as binary
> > strings by the broker, i.e. it doesn't ever try to decode them, so they
> > can have whatever encoding you want. It's up to the client applications
> > to make sense of the binary content of the headers.
>
> That's not quite true.
>
> The broker will pretty much accept any binary, however in the AMQP spec
> they are defined to be UTF-8, so really that's what you should use - for
> example the management plugin is likely to be unhappy if they are not
> valid UTF-8.
>
> Note that this does *not* apply to message bodies, which really are any
> binary content.
Great, thank you both for the information. I'll be sure to use UTF-8 strings and will report any oddities I encounter.
Thanks!
-Chris
More information about the rabbitmq-discuss
mailing list