On 08/19/2013 05:36 PM, Gordon Sim wrote:
On 08/19/2013 05:00 PM, Gordon Sim wrote:
So, my question is whether you are saying that the test above (i.e. the
if statement) does not in fact work for some reason as a way to
determine whether to encode as str or bin?

Answering my own question through some experimentation, it appears it
does work. I.e. I can utf8::upgrade() a property value before setting it
and it is then encoded as str16.

So for perl at least, you can at present send properties (and values in
maps and lists) as either utf8 strings or binary strings. The question
would then seem to be simply whether that choice can be made simpler,
nicer, more intuitive etc to users(?).

A similar approach could be taken in python, by encoding unicode strings
as strs and 'normal' strings.

Sorry, I was too quick to hit send there! That should have read: 'by encoding unicode strings as strs and 'normal' strings as bins'.



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to