|
|
| Author |
Message |
|
| Guest |
Posted: Fri Jan 11, 2008 2:24 am |
|
|
|
Guest
|
|
| Back to top |
|
| tonyg |
Posted: Fri Jan 11, 2008 9:56 am |
|
|
|
User
Joined: 07 Nov 2006
Posts: 199
|
Hi,
Berlin Brown wrote:
> According to the amqp protocol, are ascii strings supported or for
> most operations:
If your string contains only 7-bit ASCII characters, i.e. codepoints
less than 128, then a UTF-8 encoding of that string is the same byte
sequence as the raw ASCII encoding.
> For example, in the Connection.start_ok AMQP operation:
> You have to send the locale and the login properties (shortstr):
You can pretty much choose to send ASCII anytime UTF-8 is expected.
You will of course have to deal with potentially *receiving* byte
sequences encoding characters with codepoints greater than or equal to
128... but, depending on your application, this could be as simple as a
gentleman's agreement between all participants to avoid non-ASCII
codepoints...
> Must that data be sent as UTF-8 string?
It must. |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|