From: Yuri C. <yu...@uk...> - 2015-02-01 07:49:19
|
Git commit 1491c56dd938f5831e58edef33f8e555631f4f6b by Yuri Chornoivan. Committed on 01/02/2015 at 07:48. Pushed by yurchor into branch 'master'. Do not choke on lambdas M +1 -1 scripts/update_plugin_messages.py http://commits.kde.org/rkward/1491c56dd938f5831e58edef33f8e555631f4f6b diff --git a/scripts/update_plugin_messages.py b/scripts/update_plugin_messages.py index ce0ee06..18cb068 100755 --- a/scripts/update_plugin_messages.py +++ b/scripts/update_plugin_messages.py @@ -148,7 +148,7 @@ def quote (text): try: text = text.decode ('utf-8', 'ignore') except: - print ("Python has trouble decoding this text: " + text) + print ("Python has trouble decoding this text: " + text.encode('utf-8')) text = HTMLParser.HTMLParser ().unescape (text) # unescape character entities, Qt does so while parsing the xml return "\"" + text.replace ("\\", "\\\\").replace ("\"", "\\\"") + "\"" |