Author: remi
Date: 2009-09-22 09:46:26 +0200 (Tue, 22 Sep 2009)
New Revision: 5473

Modified:
   
software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py
Log:
* Don't attempt to recognize the encoding of the messages string showed in the 
TuxBox gadgets balloon. The plugins must absolutely send its string to utf8.

Modified: 
software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py
===================================================================
--- 
software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py
      2009-09-21 13:44:27 UTC (rev 5472)
+++ 
software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py
      2009-09-22 07:46:26 UTC (rev 5473)
@@ -583,6 +583,7 @@
             messages = pguContext.getMessagesHistory()
             result['count'] = len(messages)
             for i, message in enumerate(messages):
+                """
                 if not String.isUtf8(message):
                     try:
                         tmp = message.decode("latin-1", "ignore")
@@ -590,6 +591,7 @@
                     except:
                         pass
                 message = String.toUtf8(message)
+                """
                 result['msg_%d' % i] = message
             return result
         self.__bfPguContextMutex.acquire()


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to