[orca/gnome-3-4] Fix UnicodeWarning



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]