Changeset 614:d16da6e739ef in documentViewer


Ignore:
Timestamp:
Oct 21, 2013, 8:36:54 AM (11 years ago)
Author:
casties
Branch:
default
Children:
615:d6eca930a534, 616:3f9b42840901
Message:

fix problem with utf8ify trying to encode ints.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SrvTxtUtils.py

    r613 r614  
    2323import xml.etree.ElementTree as ET
    2424
    25 srvTxtUtilsVersion = "1.12.1"
     25srvTxtUtilsVersion = "1.12.2"
    2626
    2727map_months = {'en': [u"",
     
    8585    if isinstance(s, str):
    8686        return s
    87     else:
     87    elif isinstance(s, unicode):
    8888        return s.encode('utf-8')
     89    else:
     90        return str(s)
    8991
    9092def getText(node, recursive=0):
Note: See TracChangeset for help on using the changeset viewer.