TDISP: added custom character routine