Closed kei-s closed 13 years ago
I think it is caused by using String#length to get byte size in lib/amqp/buffer.rb.
Does this still happen? I haven't run into it yet, but I encode everything with AES before sending. I guess you could try to Base64 encode stuff (and then decode, yeah, annoying).
Yes, this still happen. I agree to use Base64, but it's not quite right :(
same here. any solution? thanks!
I can confirm this with rabbitmq. I get a bad_payload exception in the rabbitmq log. It works with ISO-8859-1 but that is not quite right either.
I've fixed this in this pull request: http://github.com/tmm1/amqp/pull/28
I tested kasperbn's patch, it works pretty good.
Closed by ee9ad7154e81dda5f5cf2b668876bc89840c84e5 - With ruby 1.9, Queue#publish wouldn't work for multi-byte characters.
Changed data.length to data.bytesize
With ruby 1.9 (tested with 1.9.1p378), Queue#publish wouldn't work for multi-byte characters.