def handle_charref(self, ref):
if self.convertEntities:<EOL><INDENT>data = chr(int(ref))<EOL><DEDENT>else:<EOL><INDENT>data = '<STR_LIT>' % ref<EOL><DEDENT>self.handle_data(data)<EOL>
Handle character references as data.