[orca/gnome-3-4] Fix UnicodeWarning
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-4] Fix UnicodeWarning
- Date: Mon, 9 Apr 2012 16:59:19 +0000 (UTC)
commit 3673ae4b2dfb488062a1a026c72f7d488e185b00
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Apr 9 12:59:38 2012 -0400
Fix UnicodeWarning
.../scripts/toolkits/WebKitGtk/script_utilities.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/WebKitGtk/script_utilities.py b/src/orca/scripts/toolkits/WebKitGtk/script_utilities.py
index 151fc76..dee2779 100644
--- a/src/orca/scripts/toolkits/WebKitGtk/script_utilities.py
+++ b/src/orca/scripts/toolkits/WebKitGtk/script_utilities.py
@@ -102,6 +102,10 @@ class Utilities(script_utilities.Utilities):
"""
text = script_utilities.Utilities.displayedText(self, obj)
+ try:
+ text = text.decode('UTF-8')
+ except:
+ pass
if text and text != self.EMBEDDED_OBJECT_CHARACTER:
return text
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]