'Changes a MS smart quote character to an XML or HTML
entity.'

def _subMSChar(self, orig):

    sub = self.MS_CHARS.get(orig)
    if (type(sub) == types.TupleType):
        if (self.smartQuotesTo == 'xml'):
            sub = ('&#x%s;' % sub[1])
        else:
            sub = ('&%s;' % sub[0])
    return sub
