[rabbitmq-discuss] Unicode Characters In AMQP Headers?

Simon MacMullen simon at rabbitmq.com
Wed Nov 9 10:46:30 GMT 2011


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.

Cheers, Simon

-- 
Simon MacMullen
RabbitMQ, VMware


More information about the rabbitmq-discuss mailing list