author | Max Kellermann <max@duempel.org> | |
Tue, 23 Sep 2008 11:41:49 +0000 (13:41 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Tue, 23 Sep 2008 11:41:49 +0000 (13:41 +0200) | ||
commit | 3052dceb948336a0671f7bea24f8b378cae4ce30 | |
tree | b204deef7e9fe084316ab803547dd36df164fecb | tree | snapshot |
parent | 3b68c580d50a22d6b0716948128cf359defab317 | commit | diff |
lyrics: print text in UTF-8
Python defaults to sending ASCII characters, and aborts if there are
non-ASCII characters in the string. Unfortunately, due to "C.UTF-8"
being not defined, we cannot reliably make Python use UTF-8, without
further locale settings. Thus, work around this mess by manually
encoding the result to UTF-8 in the script.
Python defaults to sending ASCII characters, and aborts if there are
non-ASCII characters in the string. Unfortunately, due to "C.UTF-8"
being not defined, we cannot reliably make Python use UTF-8, without
further locale settings. Thus, work around this mess by manually
encoding the result to UTF-8 in the script.
lyrics/leoslyrics.py | diff | blob | history |