Author: elias
Date: Sun Mar 20 23:02:15 2011
New Revision: 48965

URL: http://svn.gna.org/viewcvs/wesnoth?rev=48965&view=rev
Log:
[wesnoth_addon_manager] Properly encode description strings when uploading a 
campaign.

Modified:
    trunk/data/tools/wesnoth/wmldata.py

Modified: trunk/data/tools/wesnoth/wmldata.py
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wesnoth/wmldata.py?rev=48965&r1=48964&r2=48965&view=diff
==============================================================================
--- trunk/data/tools/wesnoth/wmldata.py (original)
+++ trunk/data/tools/wesnoth/wmldata.py Sun Mar 20 23:02:15 2011
@@ -268,6 +268,7 @@
         for r in result:
             if r != None:
                 # For networking, we need actual bytesteam here, not unicode.
+                if type(r) is unicode: r = r.encode("utf8")
                 bytes += str(r)
 
         return bytes


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to