[rabbitmq-discuss] diacritics in bindings

Andi Constantin andi.constantin at mediasat.ro
Tue Mar 15 08:50:07 GMT 2011


Hi Simon !

Thank you for the fix! Now it's working fine
| /     | msat.x.mo        | msat.q.sva.kltest              | 
queue            | mo.route.1276.Ştefan.#         | 
mo.route.1276.%C5%9Etefan.%23    |

But when i try to redirect the output i have the same error, ex:

rabbitmqadmin list bindings > file1
or
rabbitmqadmin list bindings | grep fan

Traceback (most recent call last):
   File "/bin/rabbitmqadmin", line 588, in <module>
     main()
   File "/bin/rabbitmqadmin", line 175, in main
     method()
   File "/bin/rabbitmqadmin", line 247, in invoke_list
     format_list(self.get(uri), self.args[1:], self.options)
   File "/bin/rabbitmqadmin", line 332, in format_list
     formatter_instance.display(json_list)
   File "/bin/rabbitmqadmin", line 345, in display
     self.display_list(columns, table)
   File "/bin/rabbitmqadmin", line 434, in display_list
     self.ascii_table(total)
   File "/bin/rabbitmqadmin", line 446, in ascii_table
     self.ascii_row(col_widths, row, "<")
   File "/bin/rabbitmqadmin", line 454, in ascii_row
     print txt
UnicodeEncodeError: 'ascii' codec can't encode character u'\u015e' in 
position 95: ordinal not in range(128)


Thanks,
Andi.


On 3/14/2011 7:21 PM, Simon MacMullen wrote:
> On 14/03/11 14:43, Andi Constantin wrote:
>> Hello !
>
> Hi.
>
>> I used a diacritic character in a binding:
>> mo.route.1733.Ştefan.#
>>
>> And rabbitmqadmin does not work any more:
>
> Well, that's embarrassing. I've just committed a fix, which should be 
> in the next release but which you can temporarily get from:
>
> http://hg.rabbitmq.com/rabbitmq-management/raw-file/5535c05ec840/bin/rabbitmqadmin 
>
>
> You should be aware that the format of the declare / delete / purge / 
> close subcommands has changed since 2.1.1, they now take both 
> mandatory and optional arguments in name=value format.
>
> Cheers, Simon
>



More information about the rabbitmq-discuss mailing list