summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-04-08 14:56:17 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2018-04-08 14:56:17 +0200
commit203fe3058cf999f763051740027582dd357f2028 (patch)
tree047a65399efdf15931df74b8a6f7a82c9b4fc9e6 /examples
parent01b725c25282a785c25e6113f03692cdff7ca26a (diff)
downloadpygobject-203fe3058cf999f763051740027582dd357f2028.tar.gz
Always use utf-8 and not the default encoding
In the recent cleanup I missed that Python 2 doesn't default to utf-8 there.
Diffstat (limited to 'examples')
-rw-r--r--examples/demo/demos/rotatedtext.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/demo/demos/rotatedtext.py b/examples/demo/demos/rotatedtext.py
index 429bbdfa..806c1493 100644
--- a/examples/demo/demos/rotatedtext.py
+++ b/examples/demo/demos/rotatedtext.py
@@ -34,8 +34,8 @@ import math
UTF8_TEXT = u"I ♥ GTK+"
HEART = u"♥"
-BYTES_TEXT = UTF8_TEXT.encode()
-BYTES_HEART = HEART.encode()
+BYTES_TEXT = UTF8_TEXT.encode("utf-8")
+BYTES_HEART = HEART.encode("utf-8")
class RotatedTextApp: