Permalink
Browse files

fixed param parsing with new utf-8 code

  • Loading branch information...
1 parent aba7c2e commit b9ee1f4f8cc719c6053cb09b7579bfed45e3012a Adam Moore committed Dec 5, 2008
Showing with 4 additions and 1 deletion.
  1. +4 −1 bin/yuidoc_parse.py
View
@@ -554,7 +554,10 @@ def parseModule(tokenMap):
self.data[const.MODULES][self.currentModule][const.SUBDATA][self.subModName][const.NAME] = longName
if const.DESCRIPTION in tokenMap:
d = tokenMap[const.DESCRIPTION][0]
- d= unicode(d, 'utf-8', 'xmlcharrefreplace')
+ try:
+ encoded = unicode(d, 'utf-8', 'xmlcharrefreplace')
+ d = encoded
+ except: pass
self.data[const.MODULES][self.currentModule][const.SUBDATA][self.subModName][const.DESCRIPTION] = d
if const.GLOBAL in tokenMap:

0 comments on commit b9ee1f4

Please sign in to comment.