[orca] Fix UnicodeWarning



commit c13ad37d416739db18398a9b77d4da1910083409
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Apr 9 12:58:14 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]