On 14 May 2014 17:49, Dominik George <n...@naturalnet.de> wrote:

> str(angle)+"°"
>

Or for Python 2.7 and 3.3+ compatibility
(str(angle)+u"°").encode("latin1")

Note that in 2.7 adding the normal string to the unicode one produces a
unicode string. It might seem better to use unicode(), but this doesn't
exist in 3.
Similarly u"".join(['a', 'b', 'c'])

Alternatively, use
from __future__ import unicode_literals
(str(angle)+"°").encode("latin1")

Russell

Reply via email to