Rospy logerr print non ascii caracters

asked 2020-07-16 14:57:50 -0600

Tom258 gravatar image

Hi I was wondering if it's possible to print non-ascii characters in rospy.logerr like this:

rospy.logerr(u'%s is not there!' % (u'éléphant'))

It always give me this error: UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 0

Thanks !

edit retag flag offensive close merge delete