Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixed param parsing with new utf-8 code

  • Loading branch information...
commit b9ee1f4f8cc719c6053cb09b7579bfed45e3012a 1 parent aba7c2e
authored

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. 5  bin/yuidoc_parse.py
5  bin/yuidoc_parse.py
@@ -554,7 +554,10 @@ def parseModule(tokenMap):
554 554
                 self.data[const.MODULES][self.currentModule][const.SUBDATA][self.subModName][const.NAME] = longName
555 555
                 if const.DESCRIPTION in tokenMap:
556 556
                     d = tokenMap[const.DESCRIPTION][0]
557  
-                    d= unicode(d, 'utf-8', 'xmlcharrefreplace')
  557
+                    try: 
  558
+                        encoded = unicode(d, 'utf-8', 'xmlcharrefreplace')
  559
+                        d = encoded
  560
+                    except: pass
558 561
                     self.data[const.MODULES][self.currentModule][const.SUBDATA][self.subModName][const.DESCRIPTION] = d
559 562
 
560 563
             if const.GLOBAL in tokenMap:

0 notes on commit b9ee1f4

Please sign in to comment.
Something went wrong with that request. Please try again.