You are not logged in.

#1 2010-04-03 23:04:57

Fractal
Member
From: Paris
Registered: 2009-09-01
Posts: 38

Strange problem with purple-remote

Hi, I experience a strange problem with purple-remote (program which allow to control Pidgin via D-Bus) :
To get the current status message, you have to type

$ purple-remote getstatusmessage

This works, but when I type

$ echo $(purple-remote getstatusmessage)

this fails with the error

Traceback (most recent call last):
  File "/usr/bin/purple-remote", line 238, in <module>
    print output
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 12: ordinal not in range(128)

Why?
How can this program work in the first case but not in the second?

Thank you smile


Edit: BTW, is there a workaround to put the output of `purple-remote getstatusmessage' in a variable? $(), redirections and piping doesn't work.

Fractal wink

Last edited by Fractal (2010-04-04 12:09:56)


English is not my native language, so fell free to correct my mistakes.

Offline

Board footer

Powered by FluxBB